Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Mark Churchill7-Jan-08 12:21
Mark Churchill7-Jan-08 12:21 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Vimalsoft(Pty) Ltd6-Jan-08 20:05
professionalVimalsoft(Pty) Ltd6-Jan-08 20:05 
GeneralRe: inserting into SQL table with just a primary key column? Pin
michal.kreslik6-Jan-08 21:09
michal.kreslik6-Jan-08 21:09 
GeneralRe: inserting into SQL table with just a primary key column? Pin
obymathew10-Jan-08 13:29
obymathew10-Jan-08 13:29 
GeneralDistinct in SQL Server Pin
.NET- India 4-Jan-08 23:19
.NET- India 4-Jan-08 23:19 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd5-Jan-08 7:37
professionalVimalsoft(Pty) Ltd5-Jan-08 7:37 
GeneralRe: Distinct in SQL Server Pin
.NET- India 6-Jan-08 18:33
.NET- India 6-Jan-08 18:33 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd6-Jan-08 20:03
professionalVimalsoft(Pty) Ltd6-Jan-08 20:03 
hi Friend, here is your Mistake. i have sent you the Query that looks like this


select * from Gallery1 where SmallImage = '~/Gallery/Bhaiji in USA/Small/IMG_0028.jpg' And 
Exists (Select Distinct(SmallImage) From Gallery1 Where Active=1)


And you sent me that give you a Problem now ,that looks like this



Select * From Gallery1 Where SmallImage='~/Gallery/Bhaiji in USA/Small/IMG_0028.jpg' and SmallImage in
(Select Distinct SmallImage From Gallery1 Where Active=1)


if you can look at the Above Queries, they dont look the same. the First Query is what i recommended and the second query, its yours and you did not use the "Exists" and you used SmallImage again, and SQL does not know what to do with it, its like an used variable but declared.

try the first one and tell me what you get

Hope it helps

Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


GeneralRe: Distinct in SQL Server Pin
.NET- India 6-Jan-08 20:14
.NET- India 6-Jan-08 20:14 
QuestionOracle, BizTalk, SQL Server Pin
Ph@ntom4-Jan-08 20:39
Ph@ntom4-Jan-08 20:39 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Vimalsoft(Pty) Ltd5-Jan-08 7:45
professionalVimalsoft(Pty) Ltd5-Jan-08 7:45 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Paul Conrad5-Jan-08 9:57
professionalPaul Conrad5-Jan-08 9:57 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Pete O'Hanlon5-Jan-08 10:22
mvePete O'Hanlon5-Jan-08 10:22 
GeneralReportViewer Problem Pin
sangramkp4-Jan-08 18:45
sangramkp4-Jan-08 18:45 
GeneralRe: ReportViewer Problem Pin
pmarfleet4-Jan-08 23:57
pmarfleet4-Jan-08 23:57 
GeneralUser Defined Data Types Pin
AAGTHosting4-Jan-08 14:35
AAGTHosting4-Jan-08 14:35 
GeneralRe: User Defined Data Types Pin
Paul Conrad4-Jan-08 17:39
professionalPaul Conrad4-Jan-08 17:39 
GeneralLooking for reference book Pin
Leo Smith4-Jan-08 6:12
Leo Smith4-Jan-08 6:12 
GeneralRe: Looking for reference book Pin
pmarfleet4-Jan-08 13:04
pmarfleet4-Jan-08 13:04 
GeneralRe: Looking for reference book Pin
Mike Dimmick4-Jan-08 13:38
Mike Dimmick4-Jan-08 13:38 
GeneralRe: Looking for reference book Pin
Reza Raad5-Jan-08 18:46
Reza Raad5-Jan-08 18:46 
GeneralRe: Looking for reference book Pin
Leo Smith7-Jan-08 1:51
Leo Smith7-Jan-08 1:51 
GeneralRe: Looking for reference book Pin
Leo Smith7-Jan-08 1:51
Leo Smith7-Jan-08 1:51 
GeneralMulti-client access: good practice Pin
goldoche4-Jan-08 5:53
goldoche4-Jan-08 5:53 
GeneralRe: Multi-client access: good practice Pin
pmarfleet4-Jan-08 13:03
pmarfleet4-Jan-08 13:03 

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.