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 6 days ago.
Improve this question
I am separating the comments from the code with 2 to 3 line break, but still it's getting removed.
How to fix this issue?
I have tried all the available comment syntaxes ( /**/, --, and # ), not all the comments are getting removed, but a few.
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 2 days ago.
Improve this question
Screenshot of the problem provided
Was expenting output of Line 4 and Line 8 should be similar whereas experiencing difference .
Hard to tell without the source data, but I'm guessing that some students have a null for hrs_studied. Most aggregate functions skip nulls, but count(*) does not. If you replace the count(*) with a count(hrs_studied), you should get the same result as `avg(hrs_studied). I.e.:
SUM(hrs_studied) / COUNT(hrs_studied) AS agg_avg_study_time
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 days ago.
Improve this question
I was given instagram database with some records and have 7 tables as follows:
Tables--
I am using MYSQL
I have a requirement check the User who have not posted a single photo using sql in MYSQL.
Any help will be appreciated
I tried to get details from Photo table using the query:
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 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 9 years ago.
Improve this question
Here im going to create a database in phpMyadmin.it shows this is not a number error.Here i have attached the image.When im going to save it shows
This is not a number!
You have to enter length for IsActive as it is of type BIT. In Mysql BIT field requires a length to be assigned.
For more details about Data types and their lengths , check out this page
http://www.tutorialspoint.com/mysql/mysql-data-types.htm
http://www.peachpit.com/articles/article.aspx?p=30885&seqNum=7
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 9 years ago.
Improve this question
I have this query:
select DB.lname as "Friend Last Name"
from DB
In my browser it is displayed as: "Friend_Last_Name".
Why has it replaced spaces with underscores? In sql 2012 it appears as "Friend Last Name" as it is meant to.
try
select DB.lname [Friend Last Name]
from DB
select DB.lname as [Friend Last Name]
from DB