Skip to content

Error Code: 1265. Data truncated for column

I have a table named pt_products with the following fields id int(11) NO PRI auto_increment merchant varchar(64) NO MUL filename varchar(255) NO MUL name varchar(255) …

Converting Date in Where clause in SQL

I need to return the sum of something within the last 30 days. My date field is a text field. My table looks something like this: Client Serial# Hrs MyDate A 1 …

Trigger on Views in PL/SQL

I want to write a trigger in PL/SQL. My first aim is to compare two time_stamp data type (A and B). If one of these is bigger than another, for instance A>B, i will update columns on another table. …

mysql get result from join table

I have a tables person and exam. I want to show data where all exam is PASS, show the latest exam pass_date. like table below what query to get it? please help. thanks! Answer You can use aggregation and conditional expressions: Note that for this sample data, you don’t need to bring in the person table…