Skip to content
DbaFix
Just share answer and question for fixing database problem
MENU
  • HOME

Tag: condition

Convert date in date list condition to list of date ranges

By adminPosted on January 6, 2023

Question : I want to look for all the records that occur on specific dates. SELECT * FROM table1 WHERE […]

return field name and number of rows which meet condition in one sentence

By adminPosted on January 1, 2023

Question : I have a table in postgres with 10 fields, and need to check for certain values in 3 […]

How to conditionally raise an error in MySQL without stored procedure

By adminPosted on December 19, 2022

Question : I need to conditionally raise an error, but I can only use a simple statement and no stored […]

Does the “don’t use errors for flow control” axiom apply to postgres?

By adminPosted on October 8, 2022

Question : In traditional programming there is an axiom that states, “do not use errors for flow control”. A general […]

Invert a Boolean expression which can return UNKNOWN

By adminPosted on September 9, 2022

Question : Example I have a table ID myField ———— 1 someValue 2 NULL 3 someOtherValue and a T-SQL Boolean […]

How to export mysql database based on a where condition

By adminPosted on August 24, 2022

Question : I need to export the data and structure of a table but the data must have a specific […]

Multiple statement conditions using OR AND within the query

By adminPosted on August 7, 2022

Question : I have this survey table and I’m trying to gather the information of userid who answer Strongly agree […]

Oracle conditional statements

By adminPosted on June 23, 2022

Question : I am making a report, and I am trying to do following: If the value of the field […]

In where clause, does MySQL continue checking conditions if first condition before AND falsy

By adminPosted on June 21, 2022

Question : I have a question about and AND inside a where clause of a query. Within the where clause, […]

mysql table replication on just some records?

By adminPosted on May 16, 2022

Question : I have a big database which contain a table with about 26 million records. Now i need to […]

  • 1
  • 2
  • 3
  • …
  • 5

Recent Posts

  • Mongoexport halts when it reaches 101 records
  • A Script to insert dummy Data in all tables of DB [duplicate]
  • Will query continue to run even after network times-out
  • Need some support on MySQL Query
  • The sort column must be the last column used in the index – MongoDB Indexing Advice
  • Understanding Backup Types
  • SQL Server sp_configure options?
  • DBA Permissions on LOCAL SERVER containing SQL SERVER [closed]
  • Update table using values from another table in SQL Server
  • Getting 0KB of size file while backup mysql database using mysql dump [closed]
  • Local Backup from Amazon RDS PostgreSQL database
  • Who is using my worker threads? SQL Server 2014 – HADR
  • Data Domain Boost viewing backups
  • One table for all persons
  • Database for building a realtime analytics system
  • Threads_cached 0 while thread_cache_size > 0
  • Why is performance non-linear if I do many UPDATEs in a single transaction
  • Mysql innoDB write operations are extremely slow
  • mysql_query expected [closed]
  • Oracle not using index when > used in where clause

Categories

  • Database Backup
  • Database Design
  • Database Index
  • Database Optimization
  • InnoDB
  • Join
  • MariaDB
  • MongoDB
  • MySQL
  • Oracle
  • Performance
  • Permissions
  • Postgresql
  • Query Performance
  • Replication
  • Security
  • SQL Server
Proudly powered by WordPress / Support by: DizzyCoding