Click here to Skip to main content
15,914,351 members
Home / Discussions / Database
   

Database

 
QuestionCan I SELECT information the same time i INSERT Pin
Robby10-Oct-02 9:04
Robby10-Oct-02 9:04 
AnswerRe: Can I SELECT information the same time i INSERT Pin
David Salter10-Oct-02 9:56
David Salter10-Oct-02 9:56 
AnswerRe: Can I SELECT information the same time i INSERT Pin
Jon Hulatt10-Oct-02 22:05
Jon Hulatt10-Oct-02 22:05 
GeneralADO Command->Execute throws exception Pin
ssirisha10-Oct-02 5:55
ssirisha10-Oct-02 5:55 
GeneralRe: ADO Command->Execute throws exception Pin
Carlos Antollini10-Oct-02 6:22
Carlos Antollini10-Oct-02 6:22 
GeneralRe: ADO Command->Execute throws exception Pin
ssirisha10-Oct-02 7:01
ssirisha10-Oct-02 7:01 
GeneralRe: ADO Command->Execute throws exception Pin
Carlos Antollini10-Oct-02 8:20
Carlos Antollini10-Oct-02 8:20 
QuestionHow to select 1 entry without using "top 1" in SQL query? Pin
Segal8-Oct-02 14:47
Segal8-Oct-02 14:47 
I'm learning writing SQL query now. If I, for example, want to retrieve information from 3 joining tables (T1, T2, T3), and only want to return the latest failed task and task name is 'Mailboxes', I wrote the following query:

select top 1 TT.task_type_desc, TL.starting_time, AAC.type_code_value
from tasklog as TL inner join task_type as TT
on TL.task_type_id=TT.task_type_id
inner join aatype_code as AAC
on AAC.type_code_id=TL.task_status and AAC.type_code_class='task_status'
where AAC.type_code_value='Failed' and TT.task_type_desc='Mailboxes'
order by TL.starting_time desc

It gave me the required result. But how to do this query without using "top 1" and still get the same result? Thanks!
AnswerRe: How to select 1 entry without using "top 1" in SQL query? Pin
Paul Riley8-Oct-02 14:54
Paul Riley8-Oct-02 14:54 
GeneralRe: How to select 1 entry without using "top 1" in SQL query? Pin
Anonymous8-Oct-02 16:19
Anonymous8-Oct-02 16:19 
GeneralRe: How to select 1 entry without using "top 1" in SQL query? Pin
Jon Hulatt9-Oct-02 0:34
Jon Hulatt9-Oct-02 0:34 
GeneralRe: How to select 1 entry without using "top 1" in SQL query? Pin
Nick Parker9-Oct-02 1:43
protectorNick Parker9-Oct-02 1:43 
QuestionUpdating Access Queries using SQL? Pin
Paul Riley8-Oct-02 14:24
Paul Riley8-Oct-02 14:24 
AnswerRe: Updating Access Queries using SQL? Pin
Mazdak9-Oct-02 9:21
Mazdak9-Oct-02 9:21 
GeneralRe: Updating Access Queries using SQL? Pin
Paul Riley9-Oct-02 11:45
Paul Riley9-Oct-02 11:45 
AnswerRe: Updating Access Queries using SQL? Pin
Mazdak9-Oct-02 23:12
Mazdak9-Oct-02 23:12 
GeneralRe: Updating Access Queries using SQL? Pin
Paul Riley9-Oct-02 23:36
Paul Riley9-Oct-02 23:36 
GeneralOutput Nested Set Model to XML using MS SQL2K Pin
Ingram Leedy8-Oct-02 9:34
Ingram Leedy8-Oct-02 9:34 
Generalreading Excel from ASP.NET Pin
ViteshAggarwal8-Oct-02 2:39
ViteshAggarwal8-Oct-02 2:39 
GeneralRe: reading Excel from ASP.NET Pin
Ed Gadziemski8-Oct-02 4:46
professionalEd Gadziemski8-Oct-02 4:46 
GeneralRe: reading Excel from ASP.NET Pin
Carlos Antollini10-Oct-02 6:27
Carlos Antollini10-Oct-02 6:27 
Generalreading Excel file from ASp.NEt Pin
ViteshAggarwal8-Oct-02 2:36
ViteshAggarwal8-Oct-02 2:36 
GeneralXMLA Function Parser Pin
Anonymous7-Oct-02 7:53
Anonymous7-Oct-02 7:53 
GeneralMS acess for ASP Pin
Sarvesvara (BVKS) Dasa6-Oct-02 23:30
Sarvesvara (BVKS) Dasa6-Oct-02 23:30 
GeneralRe: MS acess for ASP Pin
Jon Hulatt7-Oct-02 0:29
Jon Hulatt7-Oct-02 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.