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 7 years ago.
Improve this question
I struggle with a MySQL Join.
These are my tables:
user(id, name,...);
aim(id, title,...);
aim2user(userID, aimID);
A user can have multiple aims.
I would like to return all aims which are NOT selectet by user X.
How is this possible?
select id from aim where id not in (select zeildID from aim2user where userID=X)
Related
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 3 days ago.
Improve this question
I have a query like:
SELECT * from table where column1=5 or column2=8
I need an alternative query to the above query. How is that possible?
I cannot guess the exact answer.
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 2 years ago.
Improve this question
How should I delete those two rows by using user_email and note_name only?
Please help
thank you
You can use this below delete script-
delete from your_table_name where user_email = 'asdf#....' and note_name = 'adsf'
Note: This will also delete other rows if there any matching for the conditions.
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 7 years ago.
Improve this question
I'd have to make a SELECT ordering by first a column and then by another column... Is it possibile?
SELECT * FROM table_name ORDER BY colum1, column2
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 7 years ago.
Improve this question
I am basically trying to replicate functionality I know exists in MySQL. In MySQL it would look like:
SUBSTRING_INDEX(p.url, 'selection=', -1)
How do I replicate this in PSQL?
SELECT split_part(p.url, 'selection=', 2)...
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 7 years ago.
Improve this question
What is nvarchar2 in sql or MySQL
It is a data type used to store string values up to 16 bits long.