Click here to Skip to main content
15,915,501 members
Home / Discussions / Database
   

Database

 
GeneralExecuting a query Pin
Pothirajan C30-May-05 19:15
Pothirajan C30-May-05 19:15 
GeneralRe: Executing a query Pin
MasudM30-May-05 21:17
MasudM30-May-05 21:17 
GeneralRe: Executing a query Pin
Colin Angus Mackay30-May-05 22:18
Colin Angus Mackay30-May-05 22:18 
GeneralUpdate query Pin
jetset3230-May-05 1:19
jetset3230-May-05 1:19 
GeneralRe: Update query Pin
Christian Graus30-May-05 12:16
protectorChristian Graus30-May-05 12:16 
GeneralRe: Update query Pin
Anonymous2-Jun-05 3:37
Anonymous2-Jun-05 3:37 
GeneralRe: Update query Pin
jetset324-Jun-05 10:49
jetset324-Jun-05 10:49 
GeneralRe: Update query Pin
Christian Graus5-Jun-05 11:17
protectorChristian Graus5-Jun-05 11:17 
jetset32 wrote:
the TOP 1 thing didnt work, and I have tried every way i know to get this to work!

OK, is there more to the SQL than we're seeing ? ( it ends in a + ).

jetset32 wrote:
the shopping cart will only contain the productID once, so am still a little clueless on this one!

Have you made sure this is the case ? It seems the problem is elsewhere, or the TOP 1 thing would have worked, but that's still the only place you have a subquery that you assume will return one item, and apparently it's not. Have you run the SQL in query analyser, a bit at a time ( like do the select for the product ID first, then if that works, add the rest, etc ) to see what you get ?


Christian Graus - Microsoft MVP - C++
GeneralRe: Update query Pin
jetset3217-Jun-05 22:03
jetset3217-Jun-05 22:03 
GeneralRe: Update query Pin
Christian Graus20-Jun-05 13:30
protectorChristian Graus20-Jun-05 13:30 
GeneralRe: Update query Pin
jetset3221-Jun-05 20:16
jetset3221-Jun-05 20:16 
GeneralGet the updated record Pin
Yulianto.29-May-05 21:51
Yulianto.29-May-05 21:51 
QuestionSummarization of time - help please?? Pin
Masoud_TB29-May-05 19:39
Masoud_TB29-May-05 19:39 
GeneralAccess table schema Pin
RFickling29-May-05 17:44
RFickling29-May-05 17:44 
QuestionAdding a column in result set programically using SQL??? Pin
alex.barylski29-May-05 14:13
alex.barylski29-May-05 14:13 
AnswerRe: Adding a column in result set programically using SQL??? Pin
Colin Angus Mackay29-May-05 20:02
Colin Angus Mackay29-May-05 20:02 
Generalremove ignored words - indexing service Pin
a_r_2129-May-05 5:37
a_r_2129-May-05 5:37 
Generalmis , remove ignored words - *full-text catalog Pin
a_r_2129-May-05 12:54
a_r_2129-May-05 12:54 
Generalremove ignored words - indexing service Pin
a_r_2129-May-05 5:36
a_r_2129-May-05 5:36 
GeneralUsing SQL with MS access Pin
mhmo28-May-05 21:16
mhmo28-May-05 21:16 
GeneralRe: Using SQL with MS access Pin
Colin Angus Mackay28-May-05 21:52
Colin Angus Mackay28-May-05 21:52 
Generalhelp required Pin
virgo*28-May-05 11:42
virgo*28-May-05 11:42 
GeneralRe: help required Pin
Christian Graus28-May-05 12:17
protectorChristian Graus28-May-05 12:17 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:46
Colin Angus Mackay28-May-05 12:46 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:43
Colin Angus Mackay28-May-05 12:43 

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.