WORNG ALL
  • Member for 4 years, 9 months
  • Last seen more than 3 years ago
  • -
Create a Parrot Program
1 votes

T-SQL, 45 bytes CREATE PROC r @ TEXT=NULL AS G:PRINT @ GOTO G Usage EXECUTE r 'Hello word!'

View answer
Ring me when our cup noodles are ready
1 votes

T-SQL, 62 bytes DECLARE @ DATETIME=GETDATE()WHILE DATEDIFF(S,@,GETDATE())<50_: After the execution in SSMS, this will print the message "Command(s) completed successfully." plus a bell ...

View answer
12 hour to 24 hour time converter
1 votes

T-SQL, 48 bytes CREATE PROC t @ DATETIME AS PRINT FORMAT(@,'Hm') Must be used in SQL Server 2012+. The input is converted to '1900-01-01 HH:mm:ss.sss' and the FORMAT function gets the hour and minute ...

View answer
Print all Sundays in 2017
1 votes

T-SQL, 94 Bytes DECLARE @ INT=0,@_ DATETIME='2017'W:SET @+=1SET @_+=7PRINT FORMAT(@_,'dd.MM.yyy')IF @<52GOTO W if you don't like SQL GOTO or WHILE, here is a 122 bytes CTE solution WITH C AS(...

View answer
Print the Oscars Best Picture Winner
0 votes

HTML + JS 6 + jQuery, 153 bytes Longer than this answer due to the script tag but I anyway wanted to do it. setTimeout('$("*").html`<s>La La Land</s> Moonlight`',1e3) <script src=...

View answer
Print numbers from 1 to 10
0 votes

T-SQL, 27 bytes Boring answer. PRINT'1,2,3,4,5,6,7,8,9,10' Less boring with a WHILE, 51 bytes DECLARE @ INT=1WHILE @<11BEGIN PRINT @ SET @+=1 END

View answer
Output the sign
0 votes

T-SQL, 36 bytes CREATE PROC s @ INT AS PRINT SIGN(@) Usage: EXECUTE s -5464

View answer
Loading... Forever
0 votes

T-SQL, 121 bytes DECLARE @ CHAR W:SET @=IIF(@='/','-',IIF(@='-','\',IIF(@='\','|','/')))PRINT'Loading... '+@ WAITFOR DELAY'0:0:0.25'GOTO W

View answer
Goodbye Cruel World!
0 votes

T-SQL, 22 bytes [Goodbye Cruel World!] It tries to execute the nonexistent stored procedure called Goodbye Cruel World! -if there is no SQL Server instance with that dramatic sp-.

View answer
A program that deletes itself
0 votes

T-SQL, 28 bytes CREATE PROC d AS DROP PROC d It just drops/removes the procedure and the code when executing itself. Usage: EXECUTE d

View answer
How long is my number?
0 votes

T-SQL, 38 bytes CREATE PROC l @ BIGINT AS PRINT LEN(@) Usage: EXECUTE l @ = 9999999999

View answer
Make me a s'more!
0 votes

T-SQL, 259 bytes CREATE PROC S @ INT,@g INT,@c INT,@m INT,@b INT=0 AS SET @B=@G G:PRINT REPLICATE('G',@)SET @G-=1IF @G>0 GOTO G C:PRINT REPLICATE('C',@)SET @C-=1IF @C>0GOTO C M:PRINT REPLICATE('...

View answer