Find the letters of the TOP of a column
Experts...In my name column, I would like to check how many names is available in superior letters.
If the names are in upper letters just do a select
I have almost 30 k records in the table and most of the names are all small letters
but few are entered as SUPERIOR. I need enter the above.
Thanks in advance...
Hello
To search for lines where all the letters of the name are uppercase:
WHERE name = UPPER (name)
This will include the names not NULL which contain no letters at all (if you have names like "?").
To search for lines where some (but not necessarily all) letters are capitalized
WHERE name != LOWER (name)
Tags: Database
Similar Questions
-
To find the Top most parent SQL
How to find the top most parent SQL. I want to avoid the hierarchical query that shows a high cost to run. Please suggest alternative options to find the parent
Maybe (when having multiple hierarchy trees) to be adapted to your needs
Select empno, I
from (select empno, I
WCP
where empno = 7876
model
hierarchy of reference on (select employee empno,
Manager Mgr
WCP
)
dimension (employee)
measures (Manager)
main main_model
size of (0 I)
measures (empno)
rules iterate (100) until (empno [iteration_number + 1] is null)
(
EmpNo [iteration_number + 1] = hierarchy.manager [empno [iteration_number]]
)
)
where empno is not null
order by I desc
EMPNO I 7839 3 7566 2 7788 1 7876 0 Concerning
Etbin
-
Find the top level of a VM folder
I want to find the name of the top-level folder that contains a virtual machine in a data center and looking for the root tree.
For example \\datacenter\folder1\folder2\folder3\TestVM
I try to find as a parameter of the TestVM folder1.
I need to sort all the VM in our sphere of their top-level folder
In all cases to do this would be appreciated.
Also it would be quite in powercli with scripts
Try something like this
$vm = Get-VM -Name TestVM$object = $vm.ExtensionData$parent = Get-View $object.Parent while($parent -is [VMware.Vim.Folder] -and $parent.Name -ne "vm"){ $object = $parent $parent = Get-View $object.Parent}$object | Select @{N="VM";E={$vm.Name}}, @{N="Top Folder";E={$object.Name}}
-
Find the top 3 travellers per year
Hello
I created a single table where I store the ID of the loyalty, road ID as well as the Dates of vol. I have 5 frequent flyers in total and only 2 channels (to keep this small and concise for this exercise). I'm hoping to find the big TOP 3 passenger flight annually.
The output should be as follows:
Script for tableFlight Year Route ID Frequent Flyer Flight Count ======================================================= 2005 001 1001 5 2005 001 1002 3 2005 001 1003 3 2005 002 1004 7 2005 002 1005 5 2005 002 1001 1 2006 001 1002 7 2006 001 1003 5 2006 001 1001 1 2006 002 1005 11 2006 002 1003 1 2006 002 1004 1
INSERT the Script for the tableCREATE TABLE FLIGHTS ( FREQ_FLYER_ID VARCHAR2(4), ROUTE_ID VARCHAR2(3), FLIGHT_DATE DATE );
Thanks in advance!-- 1001: 5; 1002: 3; 1003: 3; 1004: 1, 1005: 1 Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1001','001',to_date('01-JAN-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1001','001',to_date('01-FEB-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1001','001',to_date('01-MAR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1001','001',to_date('01-APR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1001','001',to_date('01-MAY-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-JAN-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-FEB-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-MAR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-APR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-MAY-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-JUN-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1004','001',to_date('01-FEB-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','001',to_date('01-MAR-05','DD-MON-RR')); -- 1001: 1; 1002: 0; 1003: 0, 1004: 7; 1005: 5 insert into flights (freq_flyer_id,route_id,flight_date) values ('1001','002',to_date('31-JAN-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1004','002',to_date('31-JAN-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1004','002',to_date('28-FEB-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1004','002',to_date('31-MAR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1004','002',to_date('30-APR-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1004','002',to_date('31-MAY-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1004','002',to_date('30-JUN-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1004','002',to_date('31-JUL-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('30-APR-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-MAY-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('30-JUN-05','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-JUL-05','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','002',to_date('31-AUG-05','DD-MON-RR')); -- 1001: 1; 1002: 7; 1003: 5, 1004: 0; 1005: 0 insert into flights (freq_flyer_id,route_id,flight_date) values ('1001','001',to_date('01-JAN-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-FEB-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-MAR-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-APR-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-MAY-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-JUN-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1002','001',to_date('01-JUL-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1002','001',to_date('01-AUG-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-APR-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-MAY-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-JUN-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1003','001',to_date('01-JUL-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1003','001',to_date('01-AUG-06','DD-MON-RR')); -- 1001: 0; 1002: 0; 1003: 1, 1004: 1; 1005: 11 insert into flights (freq_flyer_id,route_id,flight_date) values ('1003','002',to_date('31-JAN-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1004','002',to_date('28-FEB-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-JAN-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','002',to_date('28-FEB-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-MAR-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','002',to_date('30-APR-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-MAY-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('30-JUN-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-JUL-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','002',to_date('31-AUG-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('30-SEP-06','DD-MON-RR')); insert into flights (freq_flyer_id,route_id,flight_date) values ('1005','002',to_date('31-OCT-06','DD-MON-RR')); Insert into FLIGHTS (FREQ_FLYER_ID,ROUTE_ID,FLIGHT_DATE) values ('1005','002',to_date('30-NOV-06','DD-MON-RR'));
Hello
Here's one way:
WITH got_r_num AS ( SELECT EXTRACT (YEAR FROM TRUNC (flight_date, 'YEAR')) AS flight_year , route_id , freq_flyer_id , COUNT (*) AS flight_count , RANK () OVER ( PARTITION BY TRUNC (flight_date, 'YEAR') , route_id ORDER BY COUNT (*) DESC ) AS r_num FROM flights GROUP BY TRUNC (flight_date, 'YEAR') , route_id , freq_flyer_id ) SELECT * -- or list all columns except r_num FROM got_r_num WHERE r_num <= 3 ORDER BY flight_year , route_id , r_num ;
If there be a tie (in other words, if 4 or more people, some with exactly the same number of flights, all can to be in the top 3 for a given year and the road) then the above query will include all the contenders for the top 3. For example, if you add one more line of your sample data:
Insert into FLIGHTS (FREQ_FLYER_ID, ROUTE_ID, FLIGHT_DATE) values ('1009', '002', to_date('30-NOV-2006','DD-MON-YYYY'));
Now, who are the top 3 flliers for 2006 on road '002'? Obviously, "1005" is one of them, but there is a tie of 3 - way for second place: '1003 ', '1004' and ' 1009' have exactly 1 flight, and all have equal calim to be in the top 3. Why would you exclude one of them, ratehr than the other two? The query above includes all the.
If you want to ensure that not more than 3 rows are included for the whole year and the road, and then add the columns of tiebreaker to analytical ORDER BY clause and/or use ROW_NUMBER instead of RANK.This is called a Query Top - N , because you're gathering of N (N = 3 in this case) from the top of an ordered list.
Published by: Frank Kulash, December 17, 2012 12:52
-
Script to find the 'top 10' VMs consuming disk performance?
We're troubleshooting an issue of storage and I'm looking for a better way to find virtual machines that consume disk peformance. If I had a wish list, the script would be the 'top 10' VMs with the highest disk throughput and the e/s in the last 24 hours.
Such a script exist? Any help would be greatly appreciated.
You can try the following one liner
Get-VM | Select Name, @{N="AverageIO"; E={($_ | Get-Stat -Stat disk.usage.average -Start (Get-Date).adddays(-1) | Measure-Object -Average -Property Value).Average}} | ` Sort-Object -Property AverageIO -Descending | Select -First 10
This example uses the metric of disk.usage.average but you can easily use any of the other measures related to the disc.
____________
Blog: LucD notes
Twitter: lucd22
-
algorithm to find the top of the parabola
Use case: mower rejection of common-mode using a programmable potentiometer
Problem: The performance of each circuit varies greatly and you are looking for best value (lowest CMRR) gives erroneous results. The performance seems to be relatively flat on some circuits, straight on others. Launching in the middle range of the potentiometer and moving upwards or downwards, I compare the measured value after the change of the potentiometer to the last measured value. By doing this I can get for the lowest CMR.
Setup: entry wave sign 5V 60 Hz on both positive and negative of a differential ADC. The potentiometer is cut and reduces common-mode noise. Go away and the common-mode noise increases.
Question: I would like to use adjustment curve to calculate the shape of the performance of the CMR. Take several steps (no more than 10 then I hope). Get the x y (x = 0 to 1023 trim adjustment potentiometers, Y = amplitude of the measured signal common-mode). Find the vertex.
Is this possible and can someone point to an example. I have not found one.
A parable is a second order polynomial curve. The Summit must be the peak value. The general polynomial Fit.vi to maintain your data. The Coefficients of the polynomial outputs to calculate the location of the tip with a DAB of analytic geometry.
Edit: Note that you may need to do checks to make sure that your data has not generated any curve as a parable.
Lynn
-
SQL query to find the value of a column as well!
Hi all
I have to write a query that needs to retrieve the value of a column in table B if the column value is Null in the Table A. Please find below the sample table.
Table A:
*******
EmpNumber ID
------------------------------
1 12345
2
3 14789
4
5 74563
Table B:
*******
EmpNumber ID
-----------------------------
1 12345
2 78451
3 14789
4 12212
5 74563
In the table a second and third rows have value for EmpNumber. The query should look for table B for EmpNumber value. Please advise me to make this request.
Thank youThis?
select a.id, nvl(a.empnumber,b.empnumber) empnumber from tabA a, tabB b where a.id = b.id;
-
How to find the name of a column in a table
Hi all
I have a Table that contains approximately 100 columns.
I need to find the column name, to find in specific columns containing data like 'abc '.
Ex: I have a table like temp_table_name
the columns are col1, col2, col3, col4, col5, col6, col7, col8,.... col99
I'm looking for with data specific like 'abc '.
Need to find the name of the table column that contains data of 'abc '.
Please suggest me. How to find in a single query... :-)
Actually I'm looking through a column of the table as below
Select count (*) in the temp_table_name where col1 = 'abc '.
FOR I IN 1.20 LOOP
ln_num_of_rows: = 0;
lv_column_name_search: = "col" | I have;
lv_sql: = ' select count (*) in the temp_table_name where ' | lv_column_name_search | "= abc";
EXECUTE IMMEDIATE lv_sql INTO ln_num_of_rows;
IF ln_num_of_rows > 0
-column found in lv_column_name_search
EXIT;
END IF;
END LOOP;
But I'm gettig performance problem.
How can I do this in any other alternative way? could you suggest any way possible as soon as POSSIBLE.It's probably never going to be effective - realistic, you have to scan completes the picture.
You could probably improve a little things by doing something like
SELECT DISTINCT column_name FROM ( SELECT (CASE WHEN col1 = 'abc' THEN 'col1' WHEN col2 = 'abc' THEN 'col2' WHEN col3 = 'abc' THEN 'col3' ... WHEN col20 = 'abc' THEN 'col20' ELSE NULL END) column_name FROM table_name WHERE col1 = 'abc' OR col2 = 'abc' ... OR col20 = 'abc' )
but it's never going to be incredibly fast.
Justin
-
Tips to find the "top talkers" on Cisco ASA
Y at - it a command that displays the users that use the most bandwidth? Or I need a 3rd party app that monitors the pipe? I basically am noticing a spike in bandwidth consumption from time to time and have no way to easily identify the culprit. Any suggestions would be greatly appreciated.
Jeff
Apart from the typical SSL the ASDM had a major overhaul. It now includes a firewall dashboard where you can see rules for superior access, services, hosts etc.
-
How can I find the top row of a single table, split among several images in each image.
Hi all.
Thanks in advance.
You can browse all the cells in a row column * and ask the first insertion of a text on his cell point user.user parentTextFrames [0].
If the ID value has changed, the cell is in a different text frame. As well as its line.
CC-2015, it might be a little different, because we have a new type of cell: CellTypeEnum.GRAPHIC_TYPE_CELL (not insertionPoints pave the way).
You can also:
Reproduce all text blocks in history, in that the table is sitting and control for unique tables in duplicates.
Uwe
* edit
-
DENSE_RANK and find the top three rows return regardless of their rank.
Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
Hello
I have the following problem;
Dense_rank using I've categorized the trees in a plot of height.
Now I need to filter the first three records by parcel based on the position of the trees, it's complicated by the fact that sometimes two or three of the three tallest trees have the same height.
Records that I want to use for the parcel number 90001 are tree numbers 4, 5 and 3.
Records that I want to use for the parcel number 31000 are tree numbers 4, 5, and 3, but rather the number 2 shaft is included.
The dense rank function allows me to classify the trees, but then it has accomplished its purpose. The following query is an example of what I want to do - but - I need to access the 3 early accounts after the rankings were made, so the following query is not going to use the collation.select distinct plot_number , tree_number , tree_height , dense_rank() over (partition by plot_number order by tree_height desc)ht_rank from tst_rank order by plot_number, ht_rank asc ; PLOT_NUMBER TREE_NUMBER TREE_HEIGHT HT_RANK ----------- ----------- ----------- ------- 31000 4 10 1 31000 5 10 1 31000 3 3 2 31000 2 2 3 31000 1 1 4 90001 5 20 1 90001 4 10 2 90001 3 3 3 90001 2 2 4 90001 1 1 5 10 rows selected
But I want to see;select plot_number , max(decode(ht_rank, '1', tree_height*100)) ht_1 , max(decode(ht_rank, '2', tree_height*100)) ht_2 , max(decode(ht_rank, '3', tree_height*100)) ht_3 from (select distinct plot_number , tree_number , tree_height , dense_rank() over (partition by plot_number order by tree_height desc)ht_rank from tst_rank order by plot_number, ht_rank asc )txt group by plot_number ; PLOT_NUMBER HT_1 HT_2 HT_3 ----------- ---- ---- ---- 31000 10 3 2 90001 20 10 3
Anyone have some ideas of what I could do to get there?PLOT_NUMBER HT_1 HT_2 HT_3 ----------- ---- ---- ---- 31000 10 10 3 90001 20 10 3
See you soon
Ben
Create script to replicate my problem;
Published by: benton on 9 October 2012 14:45-- drop table tst_rank; CREATE TABLE TST_RANK ( PLOT_NUMBER NUMBER , TREE_NUMBER NUMBER , TREE_HEIGHT NUMBER ); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('31000','1', '1'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('31000','2', '2'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('31000','3', '3'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('31000','4', '10'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('31000','5', '10'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('90001','1', '1'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('90001','2', '2'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('90001','3', '3'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('90001','4', '10'); INSERT INTO TST_RANK (PLOT_NUMBER, TREE_NUMBER, TREE_HEIGHT) VALUES ('90001','5', '20'); COMMIT; /* select distinct plot_number , tree_number , tree_height , dense_rank() over (partition by plot_number order by tree_height desc)ht_rank from tst_rank order by plot_number, ht_rank asc ; select plot_number , max(decode(ht_rank, '1', tree_height)) ht_1 , max(decode(ht_rank, '2', tree_height)) ht_2 , max(decode(ht_rank, '3', tree_height)) ht_3 from (select distinct plot_number , tree_number , tree_height , dense_rank() over (partition by plot_number order by tree_height desc)ht_rank from tst_rank order by plot_number, ht_rank asc )txt group by plot_number ; */
Use ROW_NUMBER
SQL> select plot_number, 2 max(decode(rn,1,tree_height)) h1, 3 max(decode(rn,2,tree_height)) h2, 4 max(decode(rn,3,tree_height)) h3 5 from( 6 select plot_number,tree_height, 7 row_number() over(partition by plot_number order by tree_height desc) rn 8 from tst_rank) 9 group by plot_number; PLOT_NUMBER H1 H2 H3 ----------- ---------- ---------- ---------- 31000 10 10 3 90001 20 10 3
-
How will I know that an appl system has a shared Top APPL?
Hello
How will I know that an appl system has a shared Top APPL?
View post:
How to find applications are shared or notThank you
A H E E R X -
Find the top level element in SQL
Hi all
I have a table with the following format. item_id, sup_item_id and a few other columns.
And that's the real problem:
We have parts (elements) mounted in designed, says let cars for example. also is it a tyre_1 element with car_A, car_B and car_C have entries in the table like this
item_id sup_item_id
tyre_1 car_A
tyre_1 car_B
tyre_1 car_C
but sometimes we are small element in someother element, then it goes to the main product. For example, we adjust wire_1 in circuit_1 which then goes to car_A and car_B. This number can have any levels and wire_1 can be in any number of circuits.
If the data table will be like this
item_id sup_item_id
wire_1 circuit_1
wire_1 circuit_2
circuit_1 car_A
circuit_1 car_B
You can identify high most of the elements in the table because they have no value in the sup_item_id field.
item_id sup_item_id
car_A
car_B
so, I want to write a sql to discover all the elements of highest level of the page for a given part. Can someone help me with this.I think that's what you're looking for
"Rim_1", I took as a point of entrywith data as ( select 'bolt_1' item_id,'rim_1' sup_item_id from dual union all select 'rim_1' item_id,'tyre_1' sup_item_id from dual union all select 'tyre_1' item_id,'frame_1' sup_item_id from dual union all select 'frame_1' item_id,'car_1' sup_item_id from dual union all select 'rim_1' item_id,'car_2' sup_item_id from dual union all select 'car_1' item_id,null sup_item_id from dual union all select 'car_2' item_id,null sup_item_id from dual ) select item_id from data where sup_item_id is null start with item_id = 'rim_1' connect by item_id = prior sup_item_id;
Thank you
Andy -
Query to find the 2 values in column 1
Hello
I have a table like
The user enters 2 values, for example A10Q and A10R. I don't need only the records that have the two values.create table table1 (col1 NUMBER, col2 VARCHAR2(4), col3 varchar2(4)); Sample Data: select COL1, NVL(COL2,'---') col2, NVL(COL3,'---') col3 from table1; COL1 COL2 COL3 ---------------------- ---- ---- 10 A10Q --- 10 A10R --- 20 --- A10Q 20 --- A10R 30 A10Q --- 30 A10R --- 30 --- A10Q 30 --- A10R 40 A10Q --- 40 --- A10R 50 A10Q --- 11 rows selected
So I need lines of the sample of data where COL1 = 10,20,30 and 40. 50 must be returned as it has only A10Q and not A10R.
I just need COL1 values.
I wrote the query below, but wanted to know if there is a better way to write this
Kind regardsselect * from table1 where col1 in (select col1 from table1 where (col2 = 'A10Q' or col3 = 'A10Q')) and (col2 = 'A10R' or col3 = 'A10R'); COL1 COL2 COL3 ---------------------- ---- ---- 10 A10R 20 A10R 30 A10R 30 A10R 40 A10R
VikramAssuming that the values cannot be duplicated for any group of individuals col1, something like that maybe...
select col1 from table1 where 'A10Q' in coalesce(col2, col3) or 'A10R' in coalesce(col2, col3) group by col1 having count(*) = 2
(not tested as you did not provide the data in a usable format)
-
Loop of auto repair. Computer will NOT start at the top.
My HP Pavilion becomes a blue screen with "Unhandled Exception in thread system. He then brings me to a window of auto repair. If I click, 'Restoration', the screen turns black with the logo 'HP' and then gets stuck. If I click 'Cancel', it brings me to a screen that says: "auto repair couldn't fix your PC. "Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt.
I tried to go to advanced options and get the command prompt, using:
Bootrec /fixMBR
Bootrec /Fixboot
Bootrec /rebuildBCDI also tried to open safe mode. All with no luck.
Something else I could try?
Thank you!
Hello
Try to run the automatic repair of a Windows boot disk that often works better
as the recovery of the system.How to run a repair 'automatic' to solve the problems of Windows 8 start
http://www.eightforums.com/tutorials/2843-automatic-repair-run-Windows-8-a.html======================================================
If necessary:
How to start on the "System Recovery Options" in Windows 8
http://www.eightforums.com/tutorials/2269-system-recovery-options-boot-Windows-8-a.htmlTry to do a "Refresh your PC without affecting your files" (or modification of your personal data
settings) or even a restore.Windows 8 includes special discount methods (keep files and settings) or a reset
(new installation remove all).How to restore, refresh or reset your PC
http://Windows.Microsoft.com/en-us/Windows-8/restore-refresh-reset-PCHow to create a system image to refresh your PC in Windows 8
http://support.Microsoft.com/kb/2748351How to update Windows 8
http://www.eightforums.com/tutorials/2293-refresh-Windows-8-a.htmlHow to reset Windows 8
http://www.eightforums.com/tutorials/2302-reset-Windows-8-a.htmlIf you need a repair disc :
Create a system repair disc
http://Windows.Microsoft.com/en-us/Windows7/create-a-system-repair-discHow to create a "system repair disc" (CD/DVD) in Windows 8
http://www.eightforums.com/tutorials/2855-system-repair-disc-create-Windows-8-a.html=======================================================
In 'some' case will help this article.
Crashes Windows or freezes
http://support.Microsoft.com/kb/2681286Do not forget to check with support of system manufacturer (manufacturer of motherboard for custom
online systems), their resources and the drivers and ask in their forums (if any)
on known problems. Don't forget to update BIOS, drivers of low level chipset,
and the other pilots of major on-board and separate devices. Those who alone can
set all or part of these issues.Note the use of Win Key + X and Win Key + W (to go on the Control Panel, Run and parameters
According to needs). Win + D key calls the office and using Win Key active / disable the Office
and the splash screen.Translate Windows 7 methods and use them on Windows 8/8.1
http://Windows.Microsoft.com/en-CA/Windows-8/resolve-Windows-blue-screen-errors
Resolve errors stop (blue screen) in Windows 7 - has a section for if you can or can not
Start Windows (applies to Windows 8/8.1). If you cannot start Windows 8/8.1 try using
a disk repair (see methods of doing a below) to access Mode without failure and other evil -.
steps of shooting.
http://Windows.Microsoft.com/en-us/Windows7/resolving-stop-blue-screen-errors-in-Windows-7Check this thread for more information using BlueScreenView, MyEventViewer and other troubleshooting methods BlueScreens - top 3 responses (+ 1 other) (applies to Windows 8/8.1).
We can analyze the minidumps if make you it available the OneDrive or other file sharing sites (such as MediaFire). If you have problems downloading the minidumps copy them on the desktop or the Documents folder and download them from there.
Adding files to your OneDrive
http://Windows.Microsoft.com/en-us/Windows-8/getting-started-onedrive-tutorialDownload pictures and files
http://Windows.Microsoft.com/en-us/onedrive/add-photos-files A disk - sharing files and folders and change the permissions
http://Windows.Microsoft.com/en-us/onedrive/share-file-folderZIP or download the content of the C:\Windows\minidump
Use OneDrive to upload collected files
-------------------------------------------------------------------------
Also this, so you can see the probable bluescreens.
Windows Vista restarts automatically if your computer encounters an error that requires him to plant. (also, Windows 7 and Windows 8/8.1)
http://www.winvistatips.com/disable-automatic-restart-T84.html======================================================
The system has RAID? If so, it's also very suspicious.
This error is usually a driver problem and adapter (video) display driver is the most suspicious that there could be others. Antivirus/antispyware/security programs, equipment (heat) and major software issues can also cause the error. When you get to the section of the driver of the utility troubleshooting use my generic methods below, and then return to the if necessary troubleshooting tool.
Have you recently added hardware or drivers updated? Don't forget to look in Control Panel - updates of Windows to see if all drivers have been updated it. Other donor opportunities include security/antivirus/anti-spyware programs.
------------------------------------------------------------------
BCCode: 7F 0x0000007E which is also 0x1000007E
* 1141.html? order = votes http://www.faultwire.com/solutions-fatal_error/System-thread-exception-not-HANDLED-0x0000007E-Bug Check 0x7E: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
http://msdn.Microsoft.com/en-us/library/ff559239 (v = vs. 85) .aspx
---------------------------------------------------------------------------------------------
It's my generic how updates of appropriate driver: (updating the video/display driver and BIOS)
This utility, it is easy see which versions are loaded: run DriverView - VIEW driver Microsoft set hide - update those without drain in their names (and BIOS and chipset).
-Free - DriverView utility displays the list of all device drivers currently loaded on your system. For each driver in the list, additional useful information is displayed: load address of the driver, description, version, product name, company that created the driver and more.
http://www.NirSoft.NET/utils/DriverView.htmlFor drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
Control Panel device - graphics card configuration-manager - note the brand and complete model of your graphics driver - double-click - tab - write version information. Now, click the driver update (this can do nothing as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT it will refresh the driver stack.
Repeat for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their own software and drivers and the other main device drivers you have.
Now go to the website of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration), then site of the manufacturer of the device (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Review of the BIOS, Chipset and software updates on the site of the manufacturer of the system while there).
Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after each installation.
Always check in the Device Manager - tab drivers version you install actually shows up. This is because some restore drivers before the most recent is installed (particularly that audio drivers) so install a driver - reboot - check that it is installed and repeat if necessary.
Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
manually by model.Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmWindows 8/8.1 - hardware and drivers
http://Windows.Microsoft.com/en-us/Windows/hardware-drivers-help#hardware-drivers-help=Windows-8Windows 8/8.1 - Why Windows is not find my device?
http://Windows.Microsoft.com/en-us/Windows-8/why-isn ' t-windows-conclusion-deviceWindows 8/8.1 - what happens if a device is not installed correctly
http://Windows.Microsoft.com/en-us/Windows-8/what-device-isn ' t-installed-correctly========================================================
Windows 8/8.1 includes special discount methods (keep files and settings) or a reset
(new installation remove all).How to restore, refresh or reset your PC (Windows 8/8.1)
http://Windows.Microsoft.com/en-us/Windows-8/restore-refresh-reset-PCHow to update Windows 8 & 8.1
http://www.eightforums.com/tutorials/2293-refresh-Windows-8-a.htmlHow to reset Windows 8 & 8.1
http://www.eightforums.com/tutorials/2302-reset-Windows-8-a.htmlIf you need a USB Flash Drive recovery or other methods:
How to create a recovery USB in Windows 8 & 8.1
http://www.eightforums.com/tutorials/5132-recovery-drive-create-USB-flash-drive-Windows-8-a.html
How to start on the "System Recovery Options" in Windows 8 & 8.1
http://www.eightforums.com/tutorials/2269-system-recovery-options-boot-Windows-8-a.htmlBoot to the tip "Startup parameters" in Windows 8 & 8.1
http://www.eightforums.com/tutorials/4924-advanced-startup-settings-boot-Windows-8-a.html--------------------------------------------------------------------------------------
Tests of memory intercept all errors, such as memory do not match (possible even for poles that seem identical) and how faster memory is placed in system behind the slower memory. Also is it better to Exchange also sticks in and out to check for those, even if all the tests of memory do not show a problem.
To test the RAM here control - run 4 + hours or so.<-- best="">-->
www.memtest.orgFor the Windows Memory Diagnostic tool.
WinKEY + W - type in the search-> memory box - find the top Memory Diagnostics tool
list - and follow the prompts.How to run the diagnostic tool for Windows 7 memory (and 8/8.1) - in Windows 8/8.1 the name is "Windows Memory Diagnostic".
http://www.SevenForums.com/tutorials/715-memory-diagnostics-tool.html======================================================
After doing ALL the updates you can and if the problem persists, run DriverVerifier.
(Remember to use the methods Windows 8/8.1 displayed at the top of the first answer above).Driver Verifier can help find some BSOD problems:
Using Driver Verifier to identify issues with Windows drivers for users advanced
http://support.Microsoft.com/kb/244617How to solve the problems of driver in Windows Vista or 7. (also 8/8.1 and 10)
http://www.WinVistaClub.com/T79.htmlUsing Driver Verifier
http://msdn.Microsoft.com/en-us/library/ff554113 (v = VS. 85) .aspxHow to use Windows drivers check Manager to solve problems and identify the Driver questions
http://www.YouTube.com/watch?v=_VwIDD9xngMDriver Verifier
http://www.techsupportforum.com/2110308-POST3.htmlUsing Driver Verifier
http://www.faultwire.com/solutions/using_driver_verifier.phpYou can disable the driver verifier
http://support.Microsoft.com/kb/244617WINDOWS key + X - RUN - type-> auditor/reset press ENTER to disable
BlueScreenView lets you know if there is a driver specified in the error message. Also check with MyEventViewer when the blue screen.
If DriverVerifier creates a minidump upload it and post the link here so we can analyze.
I hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">->
Maybe you are looking for
-
Migration of data from Time Capsule for external hard drive
On previous posts, I received advice to use a single TC to buy a new one, with the intention to use them both as backups Time Machine for three different Mac. So right now, I have a 5th generation unique Time Capsule of my network that serves as a ba
-
iTunes will not connect my new iPhone
I have just bought a new iPhone 6s and tried to connect it to my iTunes so I can transfer my music, apps etc on him. When I connect my iPhone to the computer via the USB, a message on my iTunes appears us. He said that my iPhone cannot be used becaus
-
Isolate the iPad Pro downloads since Photo Push SD card to iCloud
I recently made a trip to the coast with my digital SLR camera, an iPad Pro and SD lightning adapter. In general, I use Photos.app on my rMPB 13 "with a disk external DRIVE containing a reference of all DSLR photos library. To save space and reduct
-
Portege M700 - fan is always on
Hello I have a new Portege M700, model No. PPM70E-01D01CSP bought in Spain (included with Windows XP).My problem is that the fan is always immediately and quite noisy. In addition when it ramps upward on AC it never ramps down, even when the processo
-
Can't get messages on blackberry
Original title: e-mail question with msn on blackberry messages all of a sudden cannot get messages on my blackberry. re-installed msn on blackberry but can't find a way to find mail preferences so I can check an option to leave emails on the serverR