Click here to Skip to main content
15,901,853 members
Everything / TOAD

TOAD

TOAD

Great Reads

by dmihailescu
Take a snapshot of the main Window of any UI application

Latest Articles

by dmihailescu
Take a snapshot of the main Window of any UI application

All Articles

Sort by Score

TOAD 

4 Mar 2015 by Parazival
i have a table likeid=number phno=number1 99992 8888select id from table where phno=7777if the phone number is not available in table it will show emptyidbut i want 0thankx
4 Mar 2015 by Wendelius
If I understand the question correctly, you would like the query to return a single row having ID equal to zero if a record is not found.However, this is not how SQL is designed. In case the query doesn't find any matches the result set is returned as empty, which is actually good...
4 Mar 2015 by Jörgen Andersson
Mikas answer is the correct one but probably not what you wanted.There's a slight problem though, you have stated in your tags that you're using SQL Server 2008, while in the subject line it says Oracle.And normally for Oracle you'd use the NVL() function, but for SQL Server the same...
6 Apr 2015 by Peter Leow
Let the first table be table0, use multiple left join like this:select t0.tlid, t1.id, t0.name, t0.gender, t2.type, t2.abc, t2.xyz from table0 t0 left join table1 t1 on t0.tlid =t1.tlidleft join table2 t2 on t1.rfid=t2.rfidLearn more about Visual Representation of SQL Joins[^]
9 Apr 2015 by OriginalGriff
Try:SELECT a.tlid, a.id, b.name, b.gender, c.type, c.abc, c.xyzFROM table1 aJOIN [table] b ON a.tlid = b.tlidLEFT JOIN table2 c ON a.rfid = c.rfid
10 Apr 2015 by Member 10197359
SELECT table.tlid , table1.id , table.NAME , table.gender , table2.TYPE , table2.abc , table2.xyzFROM table LEFT JOIN table1 ON ( table.tlid = table1.tlid ) LEFT JOIN table2 ON ( table2.rfid = table1.rfid ...
22 Apr 2015 by Pro86
Hi,I am new to Toad for Data Analysts.I am creating on automated toad script using Toad for Data Analysts.I have created .tas file using Toad for Data Analysts.For achieving this i have written one sql query which is located on my local machine.Then I am exporting sql query output in...
29 Oct 2015 by Rajnish D mishra
Hi All Please Help me on my Query. I have Two different server One is Oracle Server and Other Is SQl serevrI written Select Query on toad and need retrieving data will push in Sql-server 2008r2 Table .How it possible can have any solution?
29 Oct 2015 by VR Karthikeyan
Hi refer the following articles on migrating data from Oracle to SQL Server,1. Migrating Oracle Data into SQL Server (OracleToSQL).2. Migrating from Oracle to SQL Server
9 Jan 2017 by Member 12189753
Lets say I have a table with 2 columns: one having distinct dates (DATE) and another having floating point values (PRICE), including nulls. What I want to achieve is add a new column (NON_ZERO_ID) which essentially has a value and is incremented only if PRICE is not null. Here's the desired...
9 Jan 2017 by Wendelius
First of all, this sounds like you're trying to create a sequence of ordinals for certain rows without gaps. If that is true, it should be noted that you will have gaps if the rows are deleted. Also what happens if the price is updated to null or vice versa?Having that said, you could do the...
23 Sep 2017 by Member 13425573
How to get top two occurrence of each city based on timestamp which gets populated in the table. In my table every time few city names gets poopulated with some data. i want to prepare 1 query which will retrieve only two occurrence of each city and then it will display other city. example : ...
23 Sep 2017 by Richard MacCutchan
SQL SELECT TOP, LIMIT, ROWNUM[^].
10 Dec 2018 by KManishS
Scenario: I have a Server called A having two IP: IP1 & IP2 with hostname HsN. Now I have two client Windows xp(C1) and windows server2003(C2) from where I want to access DB from toad. C1 successfully ping to IP1 and also server A listener & tns details is with IP1 whether C2 can ping to IP2 and...
1 May 2019 by Parazival
Date Code Date Testing1 XYZ 2018-05-21 Testing2 XYZ 2018-05-21 Testing3 XYZ 2018-05-22 Testing4 XYZ 2018-05-22 Testing5 XYZ 2018-05-22 Testing6 XYZ 2018-05-23 Testing7 XYZ 2018-05-23 Testing8 XYZ 2018-05-24 Testing9 XYZ 2018-05-24 Testing10 XYZ ...
1 May 2019 by CHill60
I would still use PIVOT but because you don't know the column headers until run-time you need to program some "dynamic SQL" - See Coding Dynamic SQL Statements[^]
15 Jun 2007 by dmihailescu
Take a snapshot of the main Window of any UI application
9 Apr 2015 by Parazival
i have three tablesliketabletlid mbno name gender tl1 123 yes m table1id tlid rfid1 tl1 12 2 tl1 3 tl1 table2rfid type abc xyz tlid12 one a.. x.. tl1i want to show the details likehow to write a query for...
9 Apr 2015 by Parazival
i have three tablesliketabletlid mbno name gender tl1 123 yes m table1id tlid rfid1 tl1 12 2 tl1 3 tl1table2rfid type abc xyz tlid12 one a.. x.. tl1i want to show the details likehow to write a query for this...
4 Mar 2015 by Parazival
select count(id) where phno=7777