Click here to Skip to main content
16,012,110 members

Comments by Yogi ,Pune (Top 36 by date)

Yogi ,Pune 24-Dec-13 1:58am View    
I have also tried it,i.e instead of * putting column names still same error persist.
Yogi ,Pune 24-Dec-13 1:50am View    
I used Select * in my query.
Yogi ,Pune 24-Dec-13 1:44am View    
it is not that i don't know, I was already tried below mentioned query
Select * From Student_Master Inner Join Book_Master On Student_Master.SID=Book_Master.SID Inner Join Author_Master On Book_Master.BID=Author_Master.BID Where Book_Master.BPRICE>1000 Group By Author_Master.BID Having COUNT(Author_Master.BID)>1

for above query system throws an error:"Column 'Student_Master.SID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause."


Main Question:
Write query which give list of student who take books who's price is >1000 & Book having more than one Author.

Tables:
Student: SID,SNMAE
Book: BID,BNAME,BPRICE,SID
Author: AID,ANAME,BID

I have also tried query given by you but system showing blank result but there is records in database , having more than one author to books
Yogi ,Pune 24-Dec-13 0:01am View    
Can u tell me query who retrieve list of books having more than one author.

If i get this query i will try it in join query.
Yogi ,Pune 23-Dec-13 23:54pm View    
I have tried your code " If (e.RowIndex > 0) Then"
when I debug this code, i found that RowIndex=0. i.e in code we checked 0 > 0 hence condition is not fulfill, so system is not executing any statement

then I tried (e.RowIndex >= 0) then again same error occurred.There is no row at position 0