Viewing 15 posts - 16 through 30 (of 32 total)
I would like to get something like this .
+-----------+-------+------------+------------+
| Prod name | Desc | QtyonOrder | QtyinStock |
+-----------+-------+------------+------------+
| Coms | Sheet | 123...
August 1, 2017 at 4:29 am
I would like to get something like this .
+-----------+-------+------------+------------+
| Prod name | Desc | QtyonOrder | QtyinStock |
+-----------+-------+------------+------------+
| Coms | Sheet | 123...
August 1, 2017 at 2:11 am
Does it help?
CREATE TABLE mytable(
ProductName VARCHAR(7) NOT NULL PRIMARY KEY
,Description VARCHAR(20) NOT NULL
,SalesOrderNumber INTEGER NOT NULL
,QtyInStock INTEGER NOT...
July 27, 2017 at 9:30 am
Hi J Livingston,
Do you think I should remove it from here and post it on 2008?
I just don't want to upset the admin.
July 27, 2017 at 6:17 am
I am using sql 2008 R2 standard .
SELECT DISTINCT Product.ProductName,LEFT(ProductDescription, 30
July 27, 2017 at 5:16 am
Periodend and period start are datetime as well and I have changed as you suggested earlier
AND (cast(view_SalesForecast.PeriodStart as date) >= '20160101')
AND (cast(view_SalesForecast.PeriodEnd as date ) <= '20161231')
AND (cast(view_SalesStatistics.TransactionDate as...
June 8, 2016 at 6:55 am
You have solved my problem Sir. The user gave me half information as well to compile the report but thanks to you I have got my answer I needed.
Thanks,
July 31, 2015 at 4:53 am
I have used this
dateadd(dd, datediff(dd, 0, getdate()), 0) and other but somehow it does not display the data but it shows the column.
when I use
DATEADD(dd, DATEDIFF(dd, 0,...
July 31, 2015 at 4:34 am
J Livingston SQL (7/31/2015)
this should help explainhttp://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/
Thanks Mr Livingston. I got the link working now.
My query runs ok without any error but it does not show any data.
July 31, 2015 at 4:26 am
I am not getting any data when I add 2015 and 2016 line as it carries on for 3 minutes and then I cancel the query.
I am not 100% sure...
July 2, 2015 at 1:03 pm
Thanks Luis, But I am not getting right numbers for 2015 and 2016 as we need to get for the whole year rather than getdate() or today. I hope I...
July 2, 2015 at 9:29 am
Hi ,
Sorry and I am grateful for your help and something I have never understood about aggregate probelm
SELECT
ca.AccountNumber , CompanyName, Value,
SUM( CASE...
June 26, 2015 at 10:07 am
Thanks Luis,
I managed to change and get this working so far
"ELECT
CompanyName, CustomerAccount.AccountNumber ,
SUM( CASE WHEN YEAR( DateEntered) = YEAR(DATEADD(YY, -4, GETDATE())) THEN (SalesLine.OrderQuantity*SalesLine.SellingPrice /...
June 16, 2015 at 9:12 am
I have got one question as I have only got read access to use this query.
June 11, 2015 at 1:25 pm
I am still unable to figure out what is in the article that I need to provide.
You can call me dumb and verrrrrrryyy dumb.
May I ask another way? I have...
June 11, 2015 at 8:09 am
Viewing 15 posts - 16 through 30 (of 32 total)