mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Initial release
This commit is contained in:
parent
90042b4f97
commit
896c60a8b9
60 changed files with 36730 additions and 2 deletions
52
test/samples/sample.sql.txt
Normal file
52
test/samples/sample.sql.txt
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
CREATE TABLE dbo.EmployeePhoto
|
||||
(
|
||||
EmployeeId INT NOT NULL PRIMARY KEY,
|
||||
Photo VARBINARY(MAX) FILESTREAM NULL,
|
||||
MyRowGuidColumn UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL
|
||||
UNIQUE DEFAULT NEWID()
|
||||
);
|
||||
|
||||
GO
|
||||
|
||||
/*
|
||||
text_of_comment
|
||||
/* nested comment */
|
||||
*/
|
||||
|
||||
-- line comment
|
||||
|
||||
CREATE NONCLUSTERED INDEX IX_WorkOrder_ProductID
|
||||
ON Production.WorkOrder(ProductID)
|
||||
WITH (FILLFACTOR = 80,
|
||||
PAD_INDEX = ON,
|
||||
DROP_EXISTING = ON);
|
||||
GO
|
||||
|
||||
WHILE (SELECT AVG(ListPrice) FROM Production.Product) < $300
|
||||
BEGIN
|
||||
UPDATE Production.Product
|
||||
SET ListPrice = ListPrice * 2
|
||||
SELECT MAX(ListPrice) FROM Production.Product
|
||||
IF (SELECT MAX(ListPrice) FROM Production.Product) > $500
|
||||
BREAK
|
||||
ELSE
|
||||
CONTINUE
|
||||
END
|
||||
PRINT 'Too much for the market to bear';
|
||||
|
||||
MERGE INTO Sales.SalesReason AS [Target]
|
||||
USING (VALUES ('Recommendation','Other'), ('Review', 'Marketing'), ('Internet', 'Promotion'))
|
||||
AS [Source] ([NewName], NewReasonType)
|
||||
ON [Target].[Name] = [Source].[NewName]
|
||||
WHEN MATCHED
|
||||
THEN UPDATE SET ReasonType = [Source].NewReasonType
|
||||
WHEN NOT MATCHED BY TARGET
|
||||
THEN INSERT ([Name], ReasonType) VALUES ([NewName], NewReasonType)
|
||||
OUTPUT $action INTO @SummaryOfChanges;
|
||||
|
||||
SELECT ProductID, OrderQty, SUM(LineTotal) AS Total
|
||||
FROM Sales.SalesOrderDetail
|
||||
WHERE UnitPrice < $5.00
|
||||
GROUP BY ProductID, OrderQty
|
||||
ORDER BY ProductID, OrderQty
|
||||
OPTION (HASH GROUP, FAST 10);
|
||||
Loading…
Add table
Add a link
Reference in a new issue