Click here to Skip to main content
15,891,567 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: querystring Pin
neilmajithia27-Aug-08 4:07
neilmajithia27-Aug-08 4:07 
AnswerRe: querystring Pin
Bardy8527-Aug-08 1:51
Bardy8527-Aug-08 1:51 
GeneralRe: querystring Pin
Manas Bhardwaj27-Aug-08 2:00
professionalManas Bhardwaj27-Aug-08 2:00 
GeneralRe: querystring Pin
niki_nilu27-Aug-08 3:19
niki_nilu27-Aug-08 3:19 
GeneralRe: querystring Pin
The Web Developer27-Aug-08 20:21
The Web Developer27-Aug-08 20:21 
GeneralRe: querystring Pin
niki_nilu27-Aug-08 22:59
niki_nilu27-Aug-08 22:59 
AnswerRe: querystring Pin
D4ever28-Aug-08 9:08
D4ever28-Aug-08 9:08 
Questionneed help with inner join and oount sql server 2005 and asp.net 2005 Pin
VijayVishwakarma27-Aug-08 0:20
VijayVishwakarma27-Aug-08 0:20 
hi,
I m trying to get values from three tables.
1) its has the sale id and product id
2) it has the product details based on id from 1st table,
3) it has the quantity of product being selected by the query.
My problem is I need to check the count of the product based on various sizes and if its more than 0 i need to display available else sold out.

I tried the following query.

if I remove the count it works well to get the details but If I m gonna get the count it throws error.

any suggestion where this query is wrong??


SELECT SaleProduct_tb.ProductId, Product_tb.BasePrice, Product_tb.SalePrice, Product_tb.PName, Product_tb.Image1, COUNT(ProductSizeQty.Quantity)
AS Expr1
FROM SaleProduct_tb INNER JOIN
Product_tb ON SaleProduct_tb.ProductId = Product_tb.ProductId INNER JOIN
ProductSizeQty ON Product_tb.ProductId = ProductSizeQty.ProductId
WHERE (SaleProduct_tb.SaleId = @SaleId) AND (SaleProduct_tb.CatId = @CatId) AND (SaleProduct_tb.SubCatId = @SubCatId) AND
(Product_tb.BrandId = @BrandId) ORDER BY saleProduct_tb.ProductId


after this count is found I will need to check if its more than 0 then the text should be available else not available.

any suggestion. I m using asp.net 2005

Vijay V.

Yash Softech

AnswerRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
NeverHeardOfMe27-Aug-08 0:25
NeverHeardOfMe27-Aug-08 0:25 
GeneralRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
VijayVishwakarma27-Aug-08 0:49
VijayVishwakarma27-Aug-08 0:49 
GeneralRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
Ashfield27-Aug-08 1:23
Ashfield27-Aug-08 1:23 
GeneralRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
VijayVishwakarma27-Aug-08 4:31
VijayVishwakarma27-Aug-08 4:31 
GeneralRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
Paddy Boyd27-Aug-08 2:31
Paddy Boyd27-Aug-08 2:31 
GeneralRe: need help with inner join and oount sql server 2005 and asp.net 2005 Pin
VijayVishwakarma27-Aug-08 4:33
VijayVishwakarma27-Aug-08 4:33 
QuestionURL Rewriting Pin
srinandan..26-Aug-08 23:53
srinandan..26-Aug-08 23:53 
AnswerRe: URL Rewriting Pin
eyeseetee26-Aug-08 23:56
eyeseetee26-Aug-08 23:56 
Questioncolumn value from multiple rows as one value Pin
vjvjvjvj26-Aug-08 23:40
vjvjvjvj26-Aug-08 23:40 
AnswerRe: column value from multiple rows as one value Pin
Tripathi Swati26-Aug-08 23:59
Tripathi Swati26-Aug-08 23:59 
QuestionRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 0:44
vjvjvjvj27-Aug-08 0:44 
AnswerRe: column value from multiple rows as one value Pin
Tripathi Swati27-Aug-08 1:12
Tripathi Swati27-Aug-08 1:12 
GeneralRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 1:28
vjvjvjvj27-Aug-08 1:28 
GeneralRe: column value from multiple rows as one value Pin
Tripathi Swati27-Aug-08 2:33
Tripathi Swati27-Aug-08 2:33 
GeneralRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 3:00
vjvjvjvj27-Aug-08 3:00 
GeneralRe: column value from multiple rows as one value Pin
Tripathi Swati27-Aug-08 19:30
Tripathi Swati27-Aug-08 19:30 
GeneralRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 22:51
vjvjvjvj27-Aug-08 22: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.