Viewing 15 posts - 1,471 through 1,485 (of 3,507 total)
Use OR/IN in the your WHERE clause.
July 24, 2017 at 8:42 pmSELECT itemno,item code,closedate
FROM item a INNER JOIN itemcode bFROM item a INNER JOIN itemcode b
There's even an example XLS file...
http://www.daxpatterns.com/budget-patterns/
If you want Q1 to ignore the previous quarter (Q4 of previous year), you could do something simple like
IF(Calendar[Quarter]="Q1",BLANK(),...
July 23, 2017 at 10:08 pm
You're looking for strings in any column in any table? Sounds like the design of your database is seriously dodgy.
July 21, 2017 at 10:14 pm
Thanks for the data sample... however, that's not super helpful. (Imagine copying and pasting that into SSMS and trying to run it.) Here's how to do it:
[code...
July 20, 2017 at 7:48 pm
You really need to open up SSMS and try learning something.
How about the painfully obvious:
SELECT *
FROM #Dummy
WHERE RandomString LIKE '%Mr. %'
OR RandomString LIKE...
July 20, 2017 at 2:35 pm
Go crazy. Post your code in here...
PROCEDURE [dbo].[USP_AUTO_MOVE_TBMESSAGEREDUCE_DONE_AND_REJECT_TO_SENT]
@TopRecord INT = 50000
, @ManagementID TINYINT
, @ResText VARCHAR(MAX) OUTPUT
AS
DECLARE
@NEWLINE CHAR(1)
,@SubLoop_Rows...
July 19, 2017 at 9:48 pm
Why are the month numbers in quotes? They're numbers, not text.
July 19, 2017 at 4:03 pm
You would need to update those, removing the proper number of characters (Use LEFT() and LEN() in an update query... Since you only have a few cases, you could write...
July 19, 2017 at 12:25 am
Lowell posted some code that output a dataset as an HTML table not too long ago. Look around for it.
July 18, 2017 at 11:56 pm
Go to Dice or any tech-oriented job site and look for jobs... and see what you find.
July 16, 2017 at 8:15 am
Oh, cool! I knew there had to be a less messy way of doing it! Thanks!
July 14, 2017 at 8:51 pm
Looks like you missed the CREATE TABLE part of this script...
July 12, 2017 at 7:52 pm
Any chance you could post some CREATE TABLE and INSERT scripts so we can all play with the same data?
July 12, 2017 at 3:57 pm
Viewing 15 posts - 1,471 through 1,485 (of 3,507 total)