WITH weeks
AS (
SELECT 1 AS n
UNION ALL
SELECT n + 1 FROM weeks WHERE n < 10
),
venues AS (
SELECT 1 AS v
UNION ALL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @startDate nvarchar(10); | |
declare @endDate nvarchar(10); | |
declare @daysFromNowToStart Int | |
declare @daysFromEndToNow Int | |
set @startDate = '2022-10-01'; | |
set @endDate = '2023-02-10'; | |
set @daysFromNowToStart = DATEDIFF(DAY, GETUTCDATE(), @startDate); | |
set @daysFromEndToNow = DATEDIFF(DAY, @endDate, GETUTCDATE()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://auth.example.com/connect/token HTTP/1.1 | |
Content-Type: application/x-www-form-urlencoded | |
Content-Length: 82 | |
client_id=Bazu&scope=PyPay_api | |
### | |
GET https://sandboxapi.example.com/v1/transactionroutes/assignedroutes HTTP/1.1 | |
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjY5QzFDNjNCQ0Q0QjU4OEFDOUVFRjlBNDc5RDg1ODUxIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2NzUwODQ1MzEsImV4cCI6MTY3NTA4ODEzMSwiaXNzIjoiaHR0cHM6Ly9hdXRoLnphbXVwYXkuY29tIiwiYXVkIjoiUHlQYXlfYXBpIiwiY2xpZW50X2lkIjoiQmF6dSIsImNsaWVudF9jdXN0b21lcl9pZCI6IjNhMjYwNTNhLWUxOWEtZWQxMS1hZDFlLTBlZTAwZTg5N2Y1MiIsImNsaWVudF9jdXN0b21lcl90eXBlIjoiTWVyY2hhbnQiLCJjbGllbnRfY3VzdG9tZXJfY2F0ZWdvcnkiOiJTeXN0ZW1NYW5hZ2VkIiwiY2xpZW50X3dlYnNpdGUiOiJiYXp1LmNvbSIsImp0aSI6IjQwRjlCMDVGQTM3RjMzOENFNkVFNjlCQUQ4RUIyQUQwIiwiaWF0IjoxNjc1MDg0NTMxLCJzY29wZSI6WyJQeVBheV9hcGkiXX0.i3qBOKFiD2afDIQ41pO-ZHQASYDbKGNZSft9VfoN-GtH1OV9mcSu1qe4f4JTrGc7WZwVgd3U_E46kYRTj0GhjkVDRfGwNj5MQomKjKetcCnezjNka43hmghH6cEKjh8umHp9wtLdOEM9Cwv1LDjG71uHbTFpADBhftOMpMdHqM7r37j3P3LepIrOFIAC715VrBFCpePL |
-
What method returns a promise after a group of promises have either been fulfilled or rejected?
Promise.allSettled()
-
Which function correctly demonstrates the use of the rest parameter (foo), allowing the function to accept an infinite number of arguments, beyond the required parameters a and b?
function bar(a, b, ...foo) {
foo.map(() => ())
Do you wish to become a successful senior C# developer? Or, do you want to get the best C# senior developer on your team? My carefully curated list of advanced C# interview questions and answers should serve you as a very reliable guide.
- How do you do Exception Handling in C#?
select count(*) as [Count], Avg(Amount) as [Average], Sum(Amount)/2 as [Sum divided by 2] from dbo_OrderLineItems where OrderId in
(
select Id from dbo_Orders where CustomerId in
(
'GUIDGUID-GUID-GUID-GUID-GUIDGUID',
'GUIDGUID-GUID-GUID-GUID-GUIDGUID',
'GUIDGUID-GUID-GUID-GUID-GUIDGUID'
) and (Cast(CreatedDate as date) between '01 June 2022' and '31 July 2022')
)
Boot up powershell in admin mode and **_navigate to the root of your repos.
I am serious about this, make sure you do this in a sub folder. Mine is F:\source\repos
Then run this command:
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
NewerOlder