Skip to content

Load .txt file into Postgres Database

I created a new Postgresql table and I’m having trouble loading a .txt file into that table. I striped the headers out of the text file and tried loading the data but got this error: ERROR: extra …

remove results from query if group is null

I have the below table: Criteria: Do not show results for grpid if there is a null custuserid for all grpid grpid 145 should be seen as there is a custuserid on the second row. Custid grpid …

MySQL SELECT only rows where tbl_col equal to this and that

I am struggling a bit with my SQL query. This is the query i have now, and it works as is, but i want to add some more to it. In the mysql table, there is a column that is named “type”. I want to filter the rows and get the rows with the string “sms” or the string “email”