Click here to Skip to main content
15,892,005 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Jobs Pin
_Damian S_17-Nov-09 14:06
professional_Damian S_17-Nov-09 14:06 
AnswerRe: Help with a trigger or something like that... Pin
Tripathi Swati17-Nov-09 18:51
Tripathi Swati17-Nov-09 18:51 
GeneralRe: Help with a trigger or something like that... Pin
Ashfield17-Nov-09 21:05
Ashfield17-Nov-09 21:05 
GeneralRe: Help with a trigger or something like that... Pin
Tripathi Swati18-Nov-09 2:08
Tripathi Swati18-Nov-09 2:08 
GeneralRe: Help with a trigger or something like that... Pin
Ashfield18-Nov-09 8:28
Ashfield18-Nov-09 8:28 
QuestionRe: Help with a trigger or something like that... Pin
Aptiva Dave18-Nov-09 9:14
Aptiva Dave18-Nov-09 9:14 
Questionquery to find engineering student Pin
srinandan..17-Nov-09 0:07
srinandan..17-Nov-09 0:07 
AnswerRe: query to find engineering student Pin
Niladri_Biswas17-Nov-09 1:24
Niladri_Biswas17-Nov-09 1:24 
Try this

declare @t table(name varchar(50),subject varchar(50))
insert into @t 
	select 'sri','physics' union all 
	select 'sri','chemistry' union all
	select 'sri','maths' union all
	select 'amit','physics' union all 
	select 'amit','bio' union all
	select 'amit','maths' union all
	select 'sanjay','physics' union all 
	select 'sanjay','chemistry' union all
	select 'sanjay','maths' union all
	select 'Ritu','physics' union all 
	select 'Ritu','chemistry' union all
	select 'Ritu','bio'


select name from @t 
where subject ='maths' or subject ='physics' or subject ='chemistry'
group by name
having (COUNT(name)>2)


Output:

name

sanjay
sri

Smile | :)

Niladri Biswas

GeneralRe: query to find engineering student Pin
srinandan..17-Nov-09 3:29
srinandan..17-Nov-09 3:29 
QuestionSQL - Server 2008 - Doubling Problem Pin
Paramu197316-Nov-09 23:17
Paramu197316-Nov-09 23:17 
AnswerRe: SQL - Server 2008 - Doubling Problem Pin
Niladri_Biswas17-Nov-09 1:34
Niladri_Biswas17-Nov-09 1:34 
Question[Message Deleted] Pin
Niladri_Biswas16-Nov-09 20:19
Niladri_Biswas16-Nov-09 20:19 
AnswerRe: Replace multiple words in a text + sql server(SET BASED) Pin
Mycroft Holmes16-Nov-09 22:07
professionalMycroft Holmes16-Nov-09 22:07 
GeneralRe: Replace multiple words in a text + sql server(SET BASED) Pin
Niladri_Biswas16-Nov-09 22:59
Niladri_Biswas16-Nov-09 22:59 
GeneralRe: Replace multiple words in a text + sql server(SET BASED) Pin
Luc Pattyn17-Nov-09 1:42
sitebuilderLuc Pattyn17-Nov-09 1:42 
GeneralRe: Replace multiple words in a text + sql server(SET BASED) Pin
David Skelly17-Nov-09 2:19
David Skelly17-Nov-09 2:19 
QuestionIs Oracle 10g works on Windows 7 ? Pin
E_Gold16-Nov-09 20:18
E_Gold16-Nov-09 20:18 
AnswerRe: Is Oracle 10g works on Windows 7 ? [modified] Pin
Niladri_Biswas16-Nov-09 23:19
Niladri_Biswas16-Nov-09 23:19 
QuestionDocument Management System Pin
Odd Arne16-Nov-09 12:37
Odd Arne16-Nov-09 12:37 
AnswerRe: Document Management System Pin
Mycroft Holmes16-Nov-09 19:03
professionalMycroft Holmes16-Nov-09 19:03 
AnswerRe: Document Management System Pin
Niladri_Biswas17-Nov-09 1:37
Niladri_Biswas17-Nov-09 1:37 
QuestionExport a Table to a Excel File Pin
faravani15-Nov-09 22:10
faravani15-Nov-09 22:10 
AnswerRe: Export a Table to a Excel File Pin
Niladri_Biswas16-Nov-09 1:09
Niladri_Biswas16-Nov-09 1:09 
AnswerRe: Export a Table to a Excel File Pin
Abhishek Sur16-Nov-09 4:19
professionalAbhishek Sur16-Nov-09 4:19 
AnswerRe: Export a Table to a Excel File Pin
dan!sh 16-Nov-09 5:54
professional dan!sh 16-Nov-09 5:54 

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.