First time to ask a question. Will do my best to follow the tips:
UPDATE albums
SET release_d = 1800
WHERE release_d < 1980;
or
UPDATE albums
SET release_d = '1800'
WHERE release_d <= '1980';
I receive the error…
I have a list of ID numbers as one table in my mySQL database; I have a second table that has From_ID, To_ID, and Frequency columns.
I'd like to make a third table that has the same structure as the second, but with only those rows for which the…
All, I'm using the following Sequel query...
select
u.full_name, u.id, sum(hit_count), tag_names
from MyTable as t
inner join MyUsers as u on u.id=t.user_id
where t.created_at >= '2015-1-01 04:00:00' AND t.created_at < '2015-2-01 04:00:00' AND…
Not sure if this is possible in a single query but looking to do this directly in SequelPro.
I have a table containing cars, and if they are sold or live.
I also have another table which is called data_store and contains some information about those…
I am relatively new to using group by and aggregate functions in SQL, I have the following tables:
CREATE TABLE `artists` (`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR( 100 ) NOT NULL );
CREATE TABLE `genres` (`id` INT NOT NULL…
I have just installed MySQL using the installation documentation.
MySQL is installed in the directory /usr/local as indicated in the documentation.
I attempted to start MySQL using the following command on the command…
First I want to say I've never tried using triggers before, and I read a lot of information to do this. What I want to do is delete all records from gallery_assets_meta where its parent_id is equal to gallery_assets.id.
This was what I tried on…
I'm searching my submission fields for users that signed up for two different projects. This is what I have, that is not working correctly. Any help would be great!
SELECT
user_id, COUNT(*)
FROM submissions
WHERE
project_id = 125
or…
I am reading in data to MySQL using Sequel Pro but it won't reading in special characters like Ö, ü, ç, ñ, ß. I tried Western ISO Latin 1, that doesn't work. I also tried Western DOS Latin 1, that actually converts these characters to something…
Is there a way to edit an existing index in Sequel Pro (Mac OSX)? In the Indexes pane, I only see a plus (add) and minus (remove). I can't seem to modify any of the existing indexes, such as renaming it or adding more columns to create a…
I have a query that successfully returns results using the sequel pro app on OSX:
WHERE `LastReported` BETWEEN "24/06/2014" AND "31/07/2014";
My date field in the database isn't a proper date field, it's a VARCHAR field with dates (populated from a…
I was hoping someone could help me figure out what I am doing wrong with a SQL query I am trying to run from within Sequel Pro. The error message says
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server…
Weird issue. Can't connect to localhost MySQL database from command line, but I can through MySQL program, Sequel Pro. Any ideas why? I entered the same user/password, but I'm getting a access denied error for root@localhost
Extra question: can you…
I've been happily using SequelPro in place of phpMyAdmin to access my local database.
I've inserted hundreds of rows into some tables without a glitch.
Now I can't insert more than a single row into any table - even using the same INSERT script I…
I'm trying to run a query on my WordPress database to get a list of all posts and some other data from a certain month. I'm running into an issue with post_date, where looking for posts before a certain date works fine, but looking for posts after a…