Skip to content
Webner Logo
  • Blog Home
  • Categories
    • Web Development
    • Salesforce
    • Big Data
    • Cloud
    • Database
    • PHP Frameworks
    • eLearning
    • Insurance
    • Java Frameworks
    • Linux, Windows, Mac
    • Mobile
    • Others (General)
    • Others (Technical)
    • Software Testing
    • Zoho
  • About Us
  • Contact Us
  • StudySection

Webner Blogs – eLearning, Salesforce, Web Development & More

Category: Database

August 7, 2018 Database

Improve SQL query performance

August 7, 2018 Database
Post Views: 4,722
| By Webner

Tips to improve SQL query performance 1. Avoid usage of multiple joins in a single query. Unnecessary joins degrade your query performance. 2. Creation of indexes on the table. Indexes are used for improving your queries. We need to create

Read More
July 12, 2018 Database / Java Frameworks / Web Development

DAO with JPA (and service layer/EJB3-Session Beans) or not

July 12, 2018 Database / Java Frameworks / Web Development
Post Views: 8,947
| By Webner

There is a lot of discussion on internet about whether to have DAOs or not with JPA and service layer or with session beans (which is the service layer). My personal opinion is more favored towards DAO layer and some

Read More
March 29, 2018 Database

MySQL | Communications link failure

March 29, 2018 Database
Post Views: 5,962
| By Webner

MySql Communication link failure while connecting MySql server remotely I’m getting the following error when I tried to connect MySql server remotely: ERROR: —————————————— Cannot connect to database server Communications link failure The last packet sent successfully to the server

Read More
November 16, 2017 Database

MySql | Show only columns as rows which have specific value

November 16, 2017 Database
Post Views: 6,499
| By Webner

Sometimes, we want to show only those columns which have specific value. Let’s assume we have following table : In the above table, value of 1 in a column represents that corresponding service is provided by organization and 0 represents

Read More
October 16, 2017 Database / PHP Frameworks

SQL Transaction in Cakephp 3

October 16, 2017 Database / PHP Frameworks
Post Views: 8,071
| By Webner

SQL transaction in Cakephp 3 is a series of statements working in a logical order to handle database errors and ensure data integrity. There are four main methods being used in Sql transaction in Cakephp 3. 1. Initialize the statement

Read More
October 9, 2017 Database

Azure | Consumer Web application to crerate copy of SQL Database

October 9, 2017 Database
Post Views: 5,120
| By Webner

Azure provides various rest apis to perform different actions and operations that are possible in the azure server like to create web applications, databases and many more. User can design their own simplified UI to perform actions, instead of logging

Read More
September 27, 2017 Database

MySql | Display Latest entries of two columns of two rows into single row

September 27, 2017 Database
Post Views: 6,784
| By Webner

Suppose we have two tables : articles and article_comments CREATE TABLE articles( `id` INT( 11 ) NOT NULL AUTO_INCREMENT , `title` VARCHAR( 200 ) NOT NULL , `content` VARCHAR( 500 ) NOT NULL , `author_name` VARCHAR( 20 ) DEFAULT 1

Read More
September 15, 2017 Database

MySQL | How to convert row values into column names

September 15, 2017 Database
Post Views: 40,108
| By Webner

Sometimes requirement arises to display a field value as column name in output and adjacent values in the same row below it as its values. Suppose I have a table “students” with marks of each student in different subjects. Each

Read More
July 18, 2017 Database / PHP Frameworks

Download CSV of table Records using OUTFILE sql command and PHP

July 18, 2017 Database / PHP Frameworks
Post Views: 5,739
| By Webner

Create and Download CSV of table Records using OUTFILE Sql command and PHP 1. Create temporary CSV file using OUTFILE SQL command: OUTFILE command is used to write your sql command output to the specified location. You can write the output

Read More

Posts pagination

«Previous Posts 1 … 5 6 7 8 9 … 14 Next Posts»

Google ad

Copyright 2022 - 2023 | Webner Blog by Webner Solutions Pvt Ltd. | All Rights Reserved.
MENU
  • Blog Home
  • Categories
    • Web Development
    • Salesforce
    • Big Data
    • Cloud
    • Database
    • PHP Frameworks
    • eLearning
    • Insurance
    • Java Frameworks
    • Linux, Windows, Mac
    • Mobile
    • Others (General)
    • Others (Technical)
    • Software Testing
    • Zoho
  • About Us
  • Contact Us
  • StudySection