ASP.NET and javascript validation
Dear guys,
I want to know how to password history from database and check in asp.net
check following critriea.
1) Password history should be set to 5 or more
2) Password should be case-sensitive.
3) Enforce password expiry including Minimum age and maximum age (min. age 1 & max. age 30 days) This can be changed on run-time.
Answers (1)
0
Hi Anoop,
Please try this SQL and let me know if it works for you
- declare @storeid bigint
- set @storeid=19
- select I.NameOfStores, I.ReferenceNo, SUM(Inwards.InwardQty) InwardQty, SUM(ISNULL(Issued.IssuedQty,0)) IssuedQty, SUM((ISNULL(Inwards.InwardQty,0)-ISNULL(Issued.IssuedQty,0)))as Balance
- from InventoryInwards as I
- LEFT JOIN
- (select ReferenceNo, nameofStores, ISNULL(Sum(ISNULL(Qty,0)),0) as InwardQty
- from InventoryInwards where StoreID=@storeid
- group By NameOfStores, ReferenceNo, Unit) as Inwards ON I.NameOfStores = Inwards.NameOfStores
- and i.ReferenceNo=Inwards.ReferenceNo
-
- left JOIN
- (select nameofStores, ISNULL(Sum(ISNULL(Qty,0)),0) as IssuedQty
- from InventoryIssued where StoreID=@storeid
- group By NameOfStores, ReferenceNo, unit) as Issued on I.NameOfStores= Issued.NameOfStores
-
-
-
- where i.StoreID = @storeid
- group by I.NameOfStores, I.ReferenceNo, I.Unit
Accepted 0
Thanks Ankit... that was I missing out.