Skip to main content
0 votes
2 answers
170 views

I am trying to alias a column based on a DateTime function in BigQuery. Below is my query snippet, SELECT SUM(CASE WHEN CAST(AsOfDate AS DATE) >= DATE_TRUNC(CURRENT_DATE,MONTH) ...
Jude92's user avatar
  • 167
1 vote
1 answer
633 views

I am trying to load a CSV file to my PGadmin database (on my local computer). I am running PostgreSQL16 with PGadmin4 as the user interface. I am trying to upload the date data as follows: UniqueID ...
akinoali88's user avatar
1 vote
1 answer
137 views

Suppose I have this two queries: SELECT * FROM payments WHERE created < DATE '1967-01-01' SELECT * FROM payments WHERE created < '1967-01-01' And created field is a date field. I would like to ...
Hey jude's user avatar
-1 votes
2 answers
96 views

I need to get the past 3 appointments and the next 3 appointments from a certain date. Each of these queries give the expected result. My problem is that I need the results together. I can't use UNION ...
Huerita37's user avatar
0 votes
1 answer
536 views

I'm quite new to SQL and I got stuck on one thing. Let's say that I have a database, where new records are being created every few mins and there is a 'dstamp' row which contains time when specific ...
Markvet's user avatar
0 votes
1 answer
590 views

I know about Snowflake date function to find out day, week, month, year, etc. I want to have weeks start from Saturday each week to next Saturday. following gives an idea how to extract, but need ...
Amir Ahmadi's user avatar
1 vote
4 answers
104 views

I have requirement to split column in 2 separate columns and then convert multiple date types column to standard date format column. CREATE TABLE Report (Id INT, Reference VARCHAR(30)); INSERT INTO ...
Yara1994's user avatar
  • 401
0 votes
3 answers
454 views

I am learning SQL and using Oracle SQL Developer. I have a table that contains the following columns FlightDate DepartureTime ArrivalTime I have inserted values using either TO_DATE('10:45', 'hh24:...
Vonec's user avatar
  • 13
1 vote
1 answer
669 views

I have below SQL which gives me count of files received in particular country according to date. But here dates are hard coded. I want them dynamically. I want it in such a way that whenever I run ...
AKHIL OMAR's user avatar
0 votes
2 answers
682 views

I need a solution to group the times of entry and the display the respective time interval and count of users/records during that time interval eg Time Interval Count 07:00 AM-07:30 24 12:30 PM-...
Gnanambal Meyyappan's user avatar
0 votes
1 answer
62 views

I want to send a post request to the rest API which includes an SQL date format, when I try to send the request with YYYY-MM-DD format, its showing bad request. How to properly send the data.
Bimal Sunil's user avatar
-3 votes
1 answer
400 views

I have a table containing two columns like this: Month_Date Year Dec 31 2018 May 01 2020 Jun 05 2021 Jan 18 2022 Jul 19 2019 I hope to combine the Month_date and year in the ...
Alice jinx's user avatar
-1 votes
1 answer
5k views

I am trying to extract the day of the week from a timestamp in SQL Server. I am specifically looking for the SQL Server equivalent syntax to EXTRACT. I want to count how many fields are in each day of ...
Rivky's user avatar
  • 1
0 votes
1 answer
387 views

We have a Stored Procedure in SQL Server which expects datetime column to be in MMddyyyy format and results in error Conversion failed when converting date and/or time from character string. ...
E_VAT_BIS_SOL Davean's user avatar
0 votes
1 answer
416 views

I have an excel from where I am bulk importing data to SQL server through .Net code (Dataset.WriteToServer method). Now, my excel has dates in m/d/yyyy format, e.g. 9/21/2021. The destination SQL ...
Bedabrata Bhattacharya IN's user avatar

15 30 50 per page
1
2 3 4 5
13