Viewing 15 posts - 8,881 through 8,895 (of 15,381 total)
kk1173 (3/28/2013)
discharged_entered is a date field.
Then forget all the convert nonsense. Just compare it to a datetime.
c.discharge_entered_dt >= DATEADD(DAY, -14, getdate())
March 28, 2013 at 12:37 pm
Why are you using the following code?
c.discharge_entered_dt>=convert(varchar(10),getdate()-14,101)
What is the datatype of discharge_entered? You do know that character evaluations will not produce the same thing as datetime evaluations. If your datatype...
March 28, 2013 at 12:31 pm
KoldCoffee (3/28/2013)
eg. one table contains two columns (posid, empid) which...
March 28, 2013 at 10:58 am
That was pretty close. There are a few foreign keys to tables we don't have but that is workable. We are still missing tbl_DISTRICT_MASTER. And more importantly we still don't...
March 28, 2013 at 10:43 am
OK something has done something to your server. The fact that IPCONFIG and PING are not recognized suggests your path has been modified by something.
This article http://www.opal-rt.com/kb-article/ipconfig-not-recognized explains how to...
March 28, 2013 at 10:28 am
sundayose (3/28/2013)
How do I generate the DDL for entire my Database?Thanks for the responses.
You don't need the entire database, just the few tables in your query.
March 28, 2013 at 10:07 am
sundayose (3/28/2013)
Most of the tutorials I am getting on the internet do not...
March 28, 2013 at 9:43 am
astrid 69000 (3/28/2013)
It divides the total weight...
March 28, 2013 at 9:39 am
Lynn Pettis (3/28/2013)
March 28, 2013 at 8:54 am
Like this?
sum(case when ProductType = 1 then 1 else 0 end)
March 28, 2013 at 8:40 am
astrid 69000 (3/28/2013)
but of course it worked 😀
now the million dollar question... the way i did it, how...
March 28, 2013 at 8:37 am
Your issue is here...
WHEN @status = NULL THEN NULL
That will never evaluate to true. You should instead use
WHEN @status IS NULL THEN NULL
March 28, 2013 at 8:29 am
The formatting of this makes my eyes bleed. Let's start by cleaning this up a little bit so it is easier to read.
SELECT DISTINCT [dbo].[tbl_VOUCHER_ISSUE].dt_VOUCHER_ISSUE_DATE AS IssuanceDate
,[dbo].[tbl_VOUCHER_ISSUE_DETAIL].str_BARCODE
,[dbo].[tbl_SALES_TEAM_MASTER].[str_SALES_TEAM_NAME]
,[dbo].[tbl_VOUCHER_CAPTURE_DETAIL].str_BARCODE AS VouchersSold
,[dbo].[tbl_VOUCHER_CAPTURE].dt_VOUCHER_ISSUE_DATE AS...
March 28, 2013 at 8:24 am
Viewing 15 posts - 8,881 through 8,895 (of 15,381 total)