How to setup postgres initdb with a custom data directory?
I am trying to set up Postgres 12 on Centos 8. Postgres shall be installed in the default directory i.e. /var/lib/pgsql, however I want the data…
3 Answers · 9.4K Views · Answered ✓
Get a modern-day SQL Developer Training that will help you learn the basics of database querying, Microsoft SQL and the best-practices of Database Management to gain confidence with our Online SQL Certification and surmount a trending career field
I am trying to set up Postgres 12 on Centos 8. Postgres shall be installed in the default directory i.e. /var/lib/pgsql, however I want the data…
3 Answers · 9.4K Views · Answered ✓
Here are two tables.SCHOOL_STAFFSCHOOL_CODE + STAFF_TYPE_NAME + LAST_UPDATE_DATE_TIME +…
1 Answer · 720 Views · Answered ✓
When I try to drop a database I get the error "Cannot drop database "dbname" because it is currently in use". However, when I run sp_who2, there are…
1 Answer · 3.5K Views · Answered ✓
I'm trying to restore my production .bak file to a new local instance using the belowscript but I still get this error:The backup set holds a backup…
1 Answer · 1.2K Views · Answered ✓
I use postgresql and I need to drop all the tables which are present in the schema. How can I delete it from the command prompt?
1 Answer · 2.5K Views · Answered ✓
I need to do a fresh install in a lab environment. Where's a good place to download it?
1 Answer · 724 Views · Answered ✓
I don't get any output for this simple PRINT statement. What am I missing?Data supplied in sqlfiddle.DECLARE @team varchar(20)BEGIN SELECT @team =…
1 Answer · 1.0K Views · Answered ✓
The closest I can find to what I want to do is How to duplicate related rows, but my inexperience gets me lost. Basically, I want to copy a number of…
1 Answer · 2.8K Views · Answered ✓
I'm trying to connect to a remote instance as sysdba - however, I encounter the error: "ORA-01017: invalid username/password; logon denied".$ sqlplus…
3 Answers · 5.2K Views · Answered ✓
I'm new to MySQL and I would like to know:How can I create a database with charset utf-8 like I did in navicat?create mydatabase;...seems to be using…
1 Answer · 938 Views · Answered ✓
How to list all constraints (Primary key, check, unique mutual exclusive, ..) of a table in PostgreSQL?
1 Answer · 1.4K Views · Answered ✓
I just installed PostgreSQL 9.4 on Ubuntu 15.10.I created a user with createuser -P myuserI created a database with createdb -O myuser mydatabaseI…
2 Answers · 5.9K Views · Answered ✓
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step SQL Server guides from industry experts
Common SQL Server interview questions, answered
Guides, tips and career advice on SQL Server from JanBask experts.
SQL Server Top 75 SSAS Interview Questions and Answers For Beginners & Experts
Prepare for your SSAS interview with our comprehensive guide featuring 75 top SQL Server Analysis Services interview questions…
SQL Server How to Become a SQL Database Administrator?
How to become a sql database administrator In 2025, discover what these professionals do, explore how much they earn and learn…
SQL Server OLAP vs OLTP: Key Differences, Architectures, Performance & Real-World Examples
Compare OLTP vs OLAP with clear definitions, architecture diagrams, real-world examples, and FAQs. Learn when to use each system…
SQL Server 70+ Most Asked SSIS Interview Questions for Freshers & Experienced
Prepare for your next SQL Server Integration Services (SSIS) interview with our top 70+ SSIS interview questions and answers.…
Pick another topic to find answers, interview questions, and real-world tips.