Cleaning data in SQL [closed] - sql

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I want to clean this data. There are text strings for dates and user_ids. Every date from the rows is assigned for every id. How do we do this using SQL?
enter image description here schedules table
I don't know yet. I am expecting every date from the rows is assigned for every id.

Related

How to find the last non-null value from an account that is closed currently? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I am trying to figure out how I can retrieve the last balance of an account that is now closed so I can see how much money was left in their account before they closed it. I am trying to figure out how to write a SQL query for this. I have a table called Accounts that has the following columns: AccountNumber,Balance,Production Date,ClosedDate,Balance . I'm not sure how I can go back into time and retrieve users balances in their accounts while also pulling the same ones that are now closed. Any ideas?!
I haven't tried much because everything has failed currently. I'm thinking some type of CTE clause might do it?!

How to know the number of user that register every day POSTGRESQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to know how many users register every day.
But i don't have any idea how to make that.
You can find below the table.
You use group by, assuming that "register" is defined by the created_at column:
select created_at::date, count(*) as num_created_users
from users
group by created_at::date;

SQL showing the results of two queries [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have two tables. Customers and Employees and I want a query that displays all customers and employees who live in California.
How would I go about doing that?
Take a look at the UNION https://www.w3schools.com/sql/sql_union.asp. Be aware that when SELECT-ing both have to have selected the same amount of columns.

What does 'indexes' do in sql query [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I come to know that this is used to speed up data retrieval..I like to know more about it .Thanks .
Indexing is a way of sorting a number of records on multiple fields. Creating an index on a field in a table creates another data structure which holds the field value, and pointer to the record it relates to. This index structure is then sorted, allowing Binary Searches to be performed on it.

SQL Query - How to find a field with two or more same characters in it [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm using SQL Server DB and I would like to write query which will look for a fields with two or more slashes in it, lets say we have these rows:
1. abc/def/g
2. abcd/efg
3. a/b/c/d/e/f/g
So it should return 1st and 3rd row! What is the easiest way to do so?
Thanks in advance!