Numéro de model
Bonjour,
Je voudrai connaître le numéro de model(version) du routeur wrt54g-ca.
Le code bar du routeur en question que je voudrais acheter est le 745883555222
Autre question est qu'il fonctionne sous linux avec le DD-WRT
Combien de ram et de mémoire flash a ce routeur et de plus je voudrais connaître la vitesse du processeur est de combien.
Hello, I will want to know the number of model (version) of the router wrt54g-Ca. The code bar of the router in question that I would like to buy is the 745883555222 Other question is that it functions under linux with the DD-WRT How much RAM and of memory flash has this router and moreover I would like to know the speed of the processor is of how much.
well not quiet sure about your first question...however, router should work with the Linux using DD-WRT and CPU speed is 200MHz, 16MB of RAM and 2MB of flash memory...let me know if you have any question...
Similar Messages
-
I would really appreciate some input on what will probably seem a very academic exercise but will have very practical value to me. I have abstracted the problem to simplify it. My goal is to use SQL modeling to list integers in a range where only the range endpoints are given. For example, let's say a table has these three rows:
STARTING, ENDING
100,115
200,210
300,305
I see the following output using MODEL:
101,102,103,104,105,106,107,108,109,110,111,112,113,114
201,202,203,204,205,206,207,208,209
301,302,303,304
(I don't care whether the output is in the form of a delimited list or records with single values.)
I'm quite familiar with how to model integers in a range with endpoints defined in the SQL, but not when the endpoints come from a table.
The solution needs to handle endpoints coming from a table rather than hard-coded in the SQL.
I am open to non-modeling solutions, but prefer MODEL, and would prefer not to use PLSQL for the purpose I have.
Thanks for your help!ltps wrote:
(I don't care whether the output is in the form of a delimited list or records with single values.)Records with single values:
select starting,
ending,
num
from tbl1
model
partition by(rowid rid)
dimension by(1 d)
measures(starting,ending,starting num)
rules
num[for d from 2 to ending[1] - starting[1] + 1 increment 1] = starting[1] + cv(d) - 1
order by num
STARTING ENDING NUM
100 115 100
101
102
103
104
105
106
107
108
109
110
STARTING ENDING NUM
111
112
113
114
115
200 210 200
201
202
203
204
205
STARTING ENDING NUM
206
207
208
209
210
300 305 300
301
302
303
304
305
33 rows selected.
SQL> SY. -
New undocumented parameters for Oracle 11.1.0.7
Oracle 11.1.0.7 has some undocumented new parameters. I was unable to
find anything on Metalink or Google. The parameters are:
cell_offload_compaction
cell_offload_parameters
cell_offload_plan_display
cell_partition_large_extents
Is there anybody who knows what these parameters are about? It looks
like a brand new mechanism, possibly for handling NUMA or, maybe, MODEL
clause and analytic functions? These are wild guesses, I have no clue
about the true nature of the parameters.OK, I've got a new theory.
I bet it's to do with the new Exabyte storage. The units of an Exadata Storage Server are called "cells" and the parameter names sound right for that. I really like theidea of being able to see the explain plan at the cell level.
http://www.oracle.com/technology/products/bi/db/exadata/pdf/exadata-technical-whitepaper.pdf -
Diplaying a calculated value in JSF
Hi..
I have a jsf page in which I need to display a field which is product of two columns from database like the following..
<t:dataTable id="events1" var="events" value="#{focal.empPlanStates}" cellpadding="3" cellspacing="0" styleClass="sharesTableForm">
<h:column id="no" >
<f:facet name="header">
<h:outputText value="#"/>
</f:facet>
<h:outputText id="num" value="#{events.model.numberOfShares} * #{events.model.actualSharePrice}"/>
</h:column>but when I execute it is displaying ... 100 * 12 but not 1200..how to achieve this one..You've separated the asterisk from the EL. Put it all in one EL block.
-
Convert comma delimed values to distinct records
Hello,
i wrote the following code to get the data from comma delimited row into distinct values to another table. say for example my data into column looks like this.
long_string column data looks like this:
11,12,14,16,13,18,17
11,12,13,15,16,17,18,19,20,30
11,20,30,40,67,90,87,65,76,43,23,56,78,90,12,22,34 - which doesn't have a comma at the end of the data.
i need to convert this into distinct record for each rows data.
i used mod function...
can some one help me.
DECLARE
cursor c_1 is select LONG_STRING from TEST;
rec c_1%rowtype;
temp_VAR varchar2(100);
size_of_VAR number;
number_of_VAR number;
i number;
cur_VAR varchar2(3);
begin
open c_1;
loop
fetch c_1 into rec;
exit when c_1%notfound;
temp_VAR := rec.LONG_STRING;
size_of_VAR := length(temp_VAR);
number_of_VAR := size_of_VAR/4;
if (mod (size_of_VAR,4) = 0) then
for i in 1..number_of_VAR loop
cur_VAR:=substr(temp_VAR,1,3);
INSERT INTO TEST_ST (LONG_ST_NUM)
VALUES ( cur_VAR);
temp_VAR:= substr(temp_VAR,5);
end loop;
else
dbms_output.put_line('Rules problem for LONG_STRING: ' || rec.LONG_STRING);
end if;
end loop;
close c_1;
end;
Thanks...Ah, I see, I took my requirement from the later posters as it wasn't clear from OP. It's not the aggregation problem that Listagg solves, but the inverse, disaggregation. I don't know a direct equivalent SQL function, but not to worry, it seems my weekend effort on another thread wasn't wasted because I can see a very simple variation on one of the solutions there that will solve this one very efficiently. It uses the model clause to iterate over the commas without any regular expression functions, XML, tree walks etc. to slow it down, and this approach should work for many similar problems. I'll add an id column so we know where the rows came from and a subid for ordering (you can drop them if you like), and an extra test record with no comma.
CREATE TABLE test_otn (id INTEGER, text VARCHAR2(4000));
INSERT INTO test_otn VALUES (1, '11,12,14,16,13,18,17');
INSERT INTO test_otn VALUES (2, '11,12,13,15,16,17,18,19,20,30');
INSERT INTO test_otn VALUES (3, '99');
INSERT INTO test_otn VALUES (4, '11,20,30,40,67,90,87,65,76,43,23,56,78,90,12,22,34');
SELECT id, numid, num
FROM test_otn
MODEL
PARTITION BY (id)
DIMENSION BY (0 i)
MEASURES (0 compos, 0 nxtpos, text, 0 numid, CAST ('' AS VARCHAR2(5)) num)
RULES
ITERATE (100) UNTIL compos[0] = 0
nxtpos[0] = Instr (text[0], ',', compos[0] + 1, 1),
num[ITERATION_NUMBER] = CASE WHEN nxtpos[0] = 0 THEN Substr (text[0], compos[0]+1)
ELSE Substr (text[0], compos[0] + 1, nxtpos[0] - compos[0] - 1) END,
numid[ITERATION_NUMBER] = ITERATION_NUMBER + 1,
compos[0] = nxtpos[0]
ORDER BY 1, 2
ID NUMID NUM
1 1 11
2 12
3 14
4 16
5 13
6 18
7 17
2 1 11
2 12
3 13
4 15
5 16
6 17
7 18
8 19
9 20
10 30
3 1 99
4 1 11
2 20
3 30
4 40
5 67
6 90
7 87
8 65
9 76
10 43
11 23
12 56
13 78
14 90
15 12
16 22
17 34
35 rows selected. -
Je voudrais trouver le code imei de mon iphone 3gs
Bonjour,
J'ai acheté un İphone 3GS en occasion et sur le coup l'ancien proprietaire du téléphone m'avait affirmé qu'il n'y avait pas de protection et de code sim.
Cependant je me suis rendu en Turquie pour les vacances j'ai fais un ios 6.1.3 uptade et mon téléphone s'est verouillé.
Je ne possede pas de code imei et je n'arrive plus a rallumer mon iphone, j'ai essayé de le rallumer avec des cartes sim tels que SFR et Bouygues Telecom mais en vain.
Je voudrais savoir ce que je pourrais faire pour pouvoir réutiliser mon téléphone, je possede le numéro de model qui est : A1303,
le FCC ID : BCGA1303B
et le İC İD : 579C-A1303B.
Dans l'attente d'une réponse rapide de votre part,
Cordialement,
M. KARAMAN
<Email Edited by Host>read this
http://www.maclife.com/article/howtos/how_remove_other_data_your_iphone -
Error While viewing data on XML model- java.sql.SQLException: constante num
I am trying to read an XML file and I keep getting an error. At first it worked, and the it stopped working. I re-did everthing exactly as first time and I cannot get it work
Here is what I do :
1) Create Physical Architecture under the XML Technology.
a) we create a Data Server with these data:
Name: XML_SERIVA_TM_DES
Technology: XML
JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
JDBC Url: jdbc:snps:xml?file=c:\Temp\hoy\CRM_CR_CURRENCY.xml&dtd=c:\Temp\hoy\ServiciosSerivaConsultasTypes0.xsd
b) We place the files xml and xsd files according to the JDBC provided in previous point.
We click on "Test Connection" and Connection is correct
c) We create a physical schema under the Data Server created in point a) , with these data:
Name: XML_SERIVA_TM_DES (After created the name is replaced by XML_SERIVA_TM_DES.Esquema)
Schema (Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
Schema (Work Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
Default :It is a checkbox , and it is ticked.
Under the "Context" tab, we add a logical schema named XML_SERIVA_TM for the "Desarrollo" Context
2) Create a Model On the Designer Navigator, we expand the "Models" panel
a) For Organization, We create a "Folder" Model. It is named "XML"
b) Under the Folder created in a), we create a new Model , with these data:
Name: XML_SERIVA_TM
Code: XML_SERIVA_TM
Technology: XML
Logical Schema: XML_SERIVA_TM
c) Do reverse-engineering.
In the Reverse tab of the model,
+ "Standard" is selected
+ Context: "Desarrollo"
+ The types of objects to reverse-engineer are: Table
In the Selective reverse tab, we select : New Datastores, Existing Datastores, Objects to reverse.
All the datastores that appear are checked
We click on Reverse Engineer in the toolbar menu
And the reverse engineer is done successfully and the datastores appear in the model panel
d) We try to test the reverse engineering by clicking on the datastores and select "View Data",
after click we get the folloging exception (running with Local agent) :
See com.borland.dx.dataset.DataSetException error code: BASE+66
com.borland.dx.dataset.DataSetException: constante numérica mal escrita
Chained exception:
java.sql.SQLException: constante numérica mal escrita
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java:1192)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
at $Proxy2.prepareStatement(Unknown Source)
at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source)
at com.borland.dx.sql.dataset.o.a(Unknown Source)
at com.borland.dx.sql.dataset.o.d(Unknown Source)
at com.borland.dx.sql.dataset.o.f(Unknown Source)
at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:624)
at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:864)
at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:153)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.hsqldb.HsqlException: constante numérica mal escrita
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ParserBase.read(Unknown Source)
at org.hsqldb.ParserBase.readThis(Unknown Source)
at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source)
at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source)
at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source)
at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)
at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)
at org.hsqldb.ParserCommand.compilePart(Unknown Source)
at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
at org.hsqldb.Session.compileStatement(Unknown Source)
at org.hsqldb.StatementManager.compile(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
... 26 more
We also try to create an interface with the datastore of the model as source of the interface, and
get the same exact exception as above, when interfaces in executed either with no-agent(local) or with an agent.
Bellow I pasted the xsd schema and XML data:
CRM_CR_CURRENCY.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<m:indicadoresResponse xmlns:m="http://co/com/bancodecredito/eai/serviciosLinea/seriva">
<ns0:WS_ResultadoConsultaIndicadores xmlns:ns0="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl">
<ns0:Error>0</ns0:Error>
<ns0:Descripcion>Transacción exitosa</ns0:Descripcion>
<ns0:indicadores>
<ns0:fecha>2011-08-10 00:00:00.0</ns0:fecha>
<ns0:descripcion>VALORACION (TRM VIGENTE) UVR/UVR</ns0:descripcion>
<ns0:tipoIndicador>3</ns0:tipoIndicador>
<ns0:codigoIndicador>312</ns0:codigoIndicador>
<ns0:codigoVertice>0</ns0:codigoVertice>
<ns0:plazo>0</ns0:plazo>
<ns0:valor>196.9975</ns0:valor>
<ns0:comportamiento>1</ns0:comportamiento>
<ns0:formato>3</ns0:formato>
</ns0:indicadores>
</ns0:WS_ResultadoConsultaIndicadores>
</m:indicadoresResponse>
ServiciosSerivaConsultasTypes0.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" schemaLocation="resultado.xsd" />
<xs:element name="indicadoresResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="impl:WS_ResultadoConsultaIndicadores" xmlns:impl="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
resultado.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:tns="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="WS_ResultadoConsultaIndicadores">
<xs:complexType>
<xs:sequence>
<xs:element name="Error" type="xs:string" />
<xs:element name="Descripcion" type="xs:string" />
<xs:sequence maxOccurs="unbounded" minOccurs="0">
<xs:element name="indicadores">
<xs:complexType>
<xs:sequence>
<xs:element name="fecha" type="xs:string" />
<xs:element name="descripcion" type="xs:string" />
<xs:element name="tipoIndicador" type="xs:int" />
<xs:element name="codigoIndicador" type="xs:int" />
<xs:element name="codigoVertice" type="xs:int" />
<xs:element name="plazo" type="xs:int" />
<xs:element name="valor" type="xs:double" />
<xs:element name="comportamiento" type="xs:int" />
<xs:element name="formato" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I really don't have any clue about what is happening. I have made sure files are in UTF-8 encoding. I don't know if any jar might be corrupted.You may sure have found the answer but it can help futur visitors:
Did you specified a Schema name for your physical schema ?
I had the same problem and no schema was set in my physical schema, when setting it, it must be OK. -
How to know my ipod gen model num is MB531LL
How to know my ipod gen model num is MB531LL
See this article.
http://support.apple.com/kb/HT1353
Or enter your serial # here.
https://selfsolve.apple.com/agreementWarrantyDynamic.do
B-rcok -
i have replaced my ip4 and it does not match with our indian model num...........it is at&t usa model num.
It can't be an "AT&T" model if it works on your carrier. As long as your phone isn't carrier locked to another carrier/location, it won't matter what model you have.
The only rare exceptions are models for China (which use a different WiFi and are locked into China Google) and certain middle east countries (which prohibit FaceTime). Since neither would work properly where you are, this is not an issue. -
Hello?I don't know what is my "Creative Muvo TX SE" Model Number. Please Help Me
The TX SE is just a specially packaged verson of the TX - the model number is DAP-TD0009. For future reference, you can find this out by going to the Downloads page and clicking on the Identify Your Product picture. It is also in Knowledge Base article 6843. PB
-
Question about speakers with a model num
I have a Sound Blaster li've card model number: CT4780
Can this card play music thru 4. speaker set?shof55 wrote:
I have a Sound Blaster li've card model number: CT4780
Can this card play music thru 4. speaker set?
Yes -
help me. i cant find the on my mp3 player (Muvo TX FM).
the 'Identifying a Creative Products Model Number' did not help meIf you search the Knowledge Base for <SPAN class=majorheader>Solution ID # 0848 you will get a list of the players and their numbers:
DAP-TD0004 MuVo TX FM
PB<!-- Solution graphic or text string --> -
battery charger for tablet
I probably shouldn't be telling you this... but most large retail stores that sell tablets also sell the accessories in store for these charges (plug and adapter both) Normally go for about $20-30 bundled.
I am not affiliated with Best Buy nor have I ever been employed by Best Buy. All of my thoughts and posts are of my own opinion and personal experience.
I may not always know the right answer, but I will always tell you what I do know. I also do free computer analysis and consultation via private message. -
Contingencia: numeraçao parada no monitor!
Boa tarde gente!
Estou testando o scenario da contingencia depois de implantar SP34 no SAP 4.7 e preparando tudo para a NFE V2.0.
Activé a contingencia para um local de negocio e crié uma nota. Mas a nota no monitor fica sem numero e sem ser identificada como contingencia.
Olhé o programa J_BNFECALLRFC e no FORM CHECK_CONTINGENCY tem esa parte:
"1362413
set contingency only when it remains NF-e "1362413
for those which are switched to model 1/1A "1362413
the switch must be done manually "1362413
"1362413
IF ls_j_1baa-NFTYPECONTI is initial. "1362413
ls_active-conting = 'X'. "1362413
wk_header-conting = 'X'. "1362413
call function 'J_1B_NFE_CONTIN_REASON_READ' "1451966
exporting "1451966
is_header = wk_header "1451966
changing "1451966
cs_active = ls_active "1451966
exceptions "1451966
reason_not_determined = 1 "1451966
others = 2. "1451966
if sy-subrc <> 0. "1451966
No handling for version 1,10 "1451966
endif. "1451966
clear ls_active-callrfc. "1362413
ELSE. "1394582
lv_conting_1A = 'X'. "1394582
endif. "1362413
ENDIF. "1362413
No nosso caso nos usamos o NFTYPECONTI para saber que nota classica escolher em caso de devoluçoes. E achamos que nao teria problemas por esa informaçao:
O sistema só considera este campo se o código Numeração contingência não estiver definido na atividade Atribuir parâmetros de numeração e impressão. => Nos marcamos o flag "Numeração na contingência admitida" nos parametros de impressao. Mas ese campo nao é verificado no FORM CHECK_CONTINGENCY.
Espero que foi capaz explicar o nosso problema e que voces tem alguma idea o sugerencia!
Como sempre: muito obrigado ja pela ajuda!
Abraços
NinoBom dia Antonino,
Existe uma certa confusão sobre a palavra "contingência" no ERP.
1) Esta aí era a contingência para quando a NF-e não podia ser emitida de alguma forma e voltava para o modelo 1/1A (NF). Atualmente esta opção é proibida para a maioria dos clientes pois entraram na obrigatoriedade de emitir NF-e.
2) A contingência de emissão offline, que é imprimir no fórmulário especial (FS/FS-DA) (tpEmis=2/5).
3) A contingência de emissão online, que é numerar e transmitir para o SCAN (tpEmis=3)
4) A opção "Switch to Contingency", que é permitir que seja cancelada uma NF-e "presa" no GRC/Sefaz para emissão de uma nota NF-e essa sim em contingência.
Atenciosamente, Fernando Da Rö -
Version
SQL> select *
2 from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - ProductionMy query
with tmp AS (
select 1 as num, 'karthik' as txt from dual UNION select 2 as num, 'john' as txt from dual UNION select 3 as num, '' as txt from dual UNION select 4 as num, '' as txt from dual UNION
select 14 as num, 'tom' as txt from dual UNION select 15 as num, '' as txt from dual UNION select 26 as num, 'sam' as txt from dual UNION
select 27 as num, '' as txt from dual UNION select 28 as num, '' as txt from dual
select *
from
select num,txt,rw,'G'||dense_rank() over(order by (num-rw)) grp_id
from
select
num, txt,row_number() over(order by num) rw
from tmp
model partition by(grp_id)
dimension by(num)
measures(txt,cast(null as varchar2(4000)) as last_row_col)
rules (last_row_col[(num)] = max(txt)[num < cv()])
GRP_ID NUM TXT LAST_ROW_COL
G1 1 karthik
G1 2 john karthik
G1 3 karthik
G1 4 karthik
G3 26 sam
G3 27 sam
G3 28 sam
G2 14 tom
G2 15 tomDesired Output :
GRP_ID NUM TXT LAST_ROW_COL
G1 1 karthik karthik
G1 2 john
G1 3
G1 4 john
G3 26 sam
G3 27
G3 28 sam
G2 14 tom
G2 15 tomi.e.within a group (GRP_ID) the column LAST_ROW_COL must hold the most recent(order by num desc) not null value to be displayed at the last row in that particular group.
So,it should be 'john' for the rest of null values in group G1(karthik will remain as it is for num = 1) which should be displayed at the ending row of that particular group.
Thanks in advance.
Edited by: RGH on Jan 2, 2012 4:18 AMRGH wrote:
My queryAnd why do you want to use MODEL for that? All you need is analytic functions:
with tmp AS (
select 1 as num, 'karthik' as txt from dual UNION ALL
select 2 as num, 'john' as txt from dual UNION ALL
select 3 as num, '' as txt from dual UNION ALL
select 4 as num, '' as txt from dual UNION ALL
select 14 as num, 'tom' as txt from dual UNION ALL
select 15 as num, '' as txt from dual UNION ALL
select 26 as num, 'sam' as txt from dual UNION ALL
select 27 as num, '' as txt from dual UNION ALL
select 28 as num, '' as txt from dual
select 'G' || dense_rank() over(order by num - rw) grp_id,
num,
txt,
last_row_col
from (
select num,
txt,
case
when lead(txt) over(order by num) is not null then last_value(txt ignore nulls) over(order by num)
when num = max(num) over() then last_value(txt ignore nulls) over(order by num)
end last_row_col,
row_number() over(order by num) rw
from tmp
GRP_ID NUM TXT LAST_RO
G1 1 karthik karthik
G1 2 john
G1 3
G1 4 john
G2 14 tom
G2 15 tom
G3 26 sam
G3 27
G3 28 sam
9 rows selected.
SQL> SY.
Maybe you are looking for
-
My early 2011 MacBook Pro 15" won't boot. Second time dealing with this this year. Apple Store charged me $300+ to fix it the first time. It worked for a few months, but stopped working again. Took it to the shop again and asked them to fix it for go
-
No materials relevant for stock replenishment found
Hi, while executing LP21 (replenishment for fixed bin), i am getting message "No materials relevant for stock replenishment found". I have maintained fixed bin, minimum,maximum qty,storage type indictor ,LE qty ,sut in the materail master. The fixe
-
Hi, i was trying to configure a solaris whole root zone, but when i try to install , it gave an error , sanity check error. solaris# zonecfg -z solaris8 solaris8: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:solaris8-
-
Best Practice for unclaimed creditcard receipts
Dear Guru's, Can any one share their experience, what is the best practice in collecting the amount from employee for the credit card receipts unclaimed and vests in document buffer. Say, credit card receipt is uploaded to document buffer, but employ
-
Dear All, I have select Movement Type is 601 and Classification is IWO and select the RG1 option. Next i go select the view list of items and simulate the list. All the items are marked in red color. I do not know. Please kindly to give the clear pr