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
Chris Meech7-Jan-08 7:12
Chris Meech7-Jan-08 7:12 
GeneralRe: inserting into SQL table with just a primary key column? Pin
Paul Conrad7-Jan-08 7:44
professionalPaul Conrad7-Jan-08 7:44 
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 
hi Friend

try this

select * from Gallery1 where SmallImage = "whatever" And 
Exists (Select Distinct(SmallImage) From Gallery1 Where Active=1)


Remember you have to Assign a value in the First select statement.Think of it this was. you want to select all the records in a table called "Gallery1" where Value is equals to "that", and from the above Query display the records Distinctively.

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 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 
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 

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.