sql
stringlengths
6
1.05M
drop schema ims; CREATE SCHEMA IF NOT EXISTS `ims`; USE `ims`; CREATE TABLE IF NOT EXISTS `ims`.`customers` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(40) NULL DEFAULT NULL, `surname` VARCHAR(40) NULL DEFAULT NULL, PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `ims`.`items` ( `...
<reponame>xuanhop/web-tin-tuc-backend -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 12, 2019 at 04:29 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
<reponame>fahadnoor076/task-manager-mongo-db<filename>public/plugin/ef_social2/sql/install/api/comment.sql INSERT INTO `api_method`(`name`,`uri`,`description`,`plugin_identifier`,`is_active`,`order`,`created_at`) values ('{wildcard_ucword} Social : Comment : Add','social/{wildcard_identifier}/{target_identifier}/commen...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2021 at 07:39 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* QUESTIONS I WANT TO ANSWER: - Is our hotel revenue growing by year? We have two hotel types so it would be good to segment revenue by hotel type - Should we increase our parking lot size? We want to understand if there is a trend in guests with personal cars - What trends can we see in the data? Focus on avera...
CREATE TABLE Employee ( Id INT IDENTITY(1,1), EmployeeCode NVARCHAR(10) NOT NULL, EmployeeName NVARCHAR(100) NOT NULL, Department NVARCHAR(50) NOT NULL, Designation NVARCHAR(50) NOT NULL, DateOfBirth DATETIME2 NOT NULL, JoinDate DATETIME2 NOT NULL, Salary DECIMAL(18,2) NOT NULL, AddressLine ...
SELECT now() as currentTime
<reponame>Nurulpro/imageexpert24 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 07, 2021 at 01:32 PM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
CREATE VIEW [Metadata].[SuggestedStagingLoadingPattern] AS /* * Written by <NAME>, May 2017 * * Returns a suggested loading pattern plus a list of columns which could be used for incremental loading of the table. * [Metadata].[Config] determines the number of rows in the table used for the TruncateAndLoad option...
-- Tables definitions -- @fixme think better on this model CREATE TABLE IF NOT EXISTS Account ( id INT UNSIGNED AUTO_INCREMENT, username VARCHAR(50) NOT NULL UNIQUE, passwordHash VARCHAR(250) NOT NULL, passwordSalt VARCHAR(30), passwordAlg TINYINT(1) NOT NULL, email VARCHAR(256) NOT NULL UNIQUE...
CREATE TABLE migration (version text NOT NULL PRIMARY KEY);
-- file:select.sql ln:15 expect:true SELECT onek.unique1, onek.stringu1 FROM onek WHERE onek.unique1 < 20 ORDER BY unique1 using >
-- file:identity.sql ln:124 expect:true CREATE TABLE itest11 (a int generated always as identity, b text)
-- 1. employee number, last name, first name, sex, and salary. SELECT E.emp_no, last_name, first_name, sex, salary FROM employees AS E JOIN salaries AS S ON E.emp_no = S.emp_no ; -- 2. first name, last name, and hire date for employees who were hired in 1986. SELECT first_name, last_name, hire_date FROM employees WH...
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mar 07 Janvier 2020 à 09:49 -- Version du serveur : 10.1.41-MariaDB-0+deb9u1 -- Version de PHP : 7.2.23-1+0~20191008.27+debian9~1.gbp021266 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone =...
-- Show address information for each person. It's not important which address it is right now.-- SQL select name, address from address inner join people on address.id = people.id;
select int64_4 from nulls where int64_4 = 49000000000 49000000000
<filename>sql/febs_quartz.sql2.sql /* Navicat Premium Data Transfer Source Server : MySQlConnection Source Server Type : MySQL Source Server Version : 50556 Source Host : localhost:3306 Source Schema : febs_quartz Target Server Type : MySQL Target Server Version : 505...
<filename>tests/queries/0_stateless/01682_cache_dictionary_complex_key.sql DROP DATABASE IF EXISTS 01682_database_for_cache_dictionary; CREATE DATABASE 01682_database_for_cache_dictionary; CREATE TABLE 01682_database_for_cache_dictionary.complex_key_simple_attributes_source_table ( id UInt64, id_key String, v...
---- -- Copyright (c) 2012-2017 Apple Inc. All rights reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by a...
<reponame>pdv-ru/ClickHouse SELECT arrayDifference([toDecimal32(0.0,4), toDecimal32(1.0,4)]) x, toTypeName(x); SELECT arrayDifference([toDecimal64(0.0,8), toDecimal64(1.0,8)]) x, toTypeName(x); SELECT arrayDifference([toDecimal128(0.0,8), toDecimal128(1.0,8)]) x, toTypeName(x); SELECT '-'; SELECT arraySum([toDecimal32(...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2015 at 10:15 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<gh_stars>0 \c pg_db -------------- -- Environment -------------- -- TODO ?.?.?: When adopter is deactivated then deactivate all adoptions by that adopter -- TODO ?.?.?: test for active adopter record during sign in. When active is false then adopter is the same as deleted. -- TODO 1.4.2: All adoptees are showi...
<filename>DB/laravel_blog.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 30, 2020 at 02:13 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
<reponame>ValeriyKnyazhev/architector INSERT INTO architector_roles (id, name) VALUES (1, 'USER'), (2, 'ADMIN'); INSERT INTO architectors (id, email, password) VALUES (1, '<EMAIL>', <PASSWORD>'), (2, '<EMAIL>', <PASSWORD>'); INSERT INTO architector_role_relations (architector_id, role_id) VALUES (...
<filename>includes/database/upgrade/(db_name)/v.2.6.4_place_from_to.sql ALTER TABLE `place` ADD `from` int(10) UNSIGNED NULL DEFAULT NULL; ALTER TABLE `place` ADD `to` int(10) UNSIGNED NULL DEFAULT NULL;
CREATE TABLE usuario ( id BIGINT(1) NOT NULL, nome VARCHAR(45) NOT NULL, rg VARCHAR(10) NOT NULL, email VARCHAR(45) NOT NULL, senha VARCHAR(150) NOT NULL, foto VARCHAR(60) NULL, <<<<<<< HEAD perfil VARCHAR(12) NOT NULL, ======= perfil VARCHAR(60) NOT NULL, >>>>>>> 61153997994e1131773f76251e912a630b97616...
/* ***************************** */ /** INSERT CATEGORIES FROM BATCH */ /* ***************************** */ use iproject19 go INSERT batchCategorieen (ID,Name,Parent) VALUES (-1,'Root',NULL) INSERT batchCategorieen (ID,Name,Parent) VALUES (1,'Verzamelen',-1) INSERT batchCategorieen (ID,Name,Parent) VALUES (30,'Overi...
<reponame>getc21/Curso-FullStackWeb<gh_stars>0 CREATE DATABASE IF NOT EXISTS api_rest_laravel; USE api_rest_laravel; CREATE TABLE users( id int(255) auto_increment NOT NULL, name varchar(50) NOT NULL , surname varchar(100), role varchar(20), email ...
/* 1o - Agrupe a nacionalidade de todos os gafanhotos homens nascidos entre 01-01-1990 à 31-12-2020. O resultado tem ser visto da nacionalidade com menor número de gafanhotos ao maior. 2o - Agrupe o peso de todos os gafanhotos sendo que só devem aparecer o peso que contem dois mais gafanhotos 3o - Agrupe a altura d...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-05-2021 a las 22:20:48 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
<reponame>SyamsulAlterra/Alta create database twitter; DROP DATABASE twitter; SHOW TABLES; use twitter; CREATE TABLE users ( id int(11) NOT NULL AUTO_INCREMENT, username varchar(100) NOT NULL, fullname varchar(255) NOT NULL, status smallint(1) NOT NULL, gender varchar(1) NOT NULL, email varchar(150) NOT ...
<filename>sql/basic select/Revising the Select Query II.sql<gh_stars>0 --github.com/imsunnyjha select name from city where population>120000 AND countrycode='USA';
<filename>digistyle-mysql.sql /* Navicat MySQL Data Transfer Source Server : xampp Source Server Version : 100122 Source Host : localhost:3306 Source Database : digistyle Target Server Type : MYSQL Target Server Version : 100122 File Encoding : 65001 Date: 2019-03-15 15:30:29 */ S...
prompt prompt ============================== prompt == UPDATE prompt ============================== prompt set serveroutput on size 1000000 set line 200 @@redo_size set echo on declare v_sql varchar2(1000); v_stale_percent integer; begin for prec in ( select partition_name from user_tab_partitions where ...
WITH last_address AS (SELECT MAX(address_number) as address_number, address_street_name, 'Y' as last_house FROM person GROUP BY address_street_name ) SELECT p.name , i.transcript FROM person p LEFT JOIN last_address la on la.address_number = p.address_number AND la.address_street_name = p.address_street_name...
ALTER EXTENSION pldbgapi ADD TYPE breakpoint; ALTER EXTENSION pldbgapi ADD TYPE frame; ALTER EXTENSION pldbgapi ADD TYPE targetinfo; ALTER EXTENSION pldbgapi ADD TYPE var; ALTER EXTENSION pldbgapi ADD TYPE proxyInfo; ALTER EXTENSION pldbgapi ADD FUNCTION plpgsql_oid_debug( functionOID OID ); ALTER EXTENSION pldbgap...
SELECT MIN(cn.name) AS movie_company, MIN(mi_idx.info) AS rating, MIN(t.title) AS mainstream_movie FROM info_type AS it1 JOIN (movie_info AS mi JOIN (title AS t JOIN (movie_companies AS mc JOIN company_type AS ct ON ct.id = mc.company_type_id JOIN company_name AS cn ON cn.id = mc.company_id) ...
select * from test.loan_all limit {limit1}; drop table if exists test.test2; create table test.test2 as select * from test.loan_all a limit {limit2};
<gh_stars>1-10 SELECT "client_id", "user_id", "created_at", "updated_at", "enable", "scope", "static" FROM sso.access_table WHERE "client_id" = $1
<reponame>Cxiaohui/mc # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.17) # Database: mc_datas # Generation Time: 2018-01-16 06:36:56 +0000 # ************************...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50714 Source Host : localhost:3306 Source Database : weixin Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2017-08-11 16:44:10 */ SET FOREIGN_KEY_CHECKS=0; ...
USE `adserve`; DROP PROCEDURE IF EXISTS `set_user`; DELIMITER // CREATE PROCEDURE `set_user` ( $id int(11), $username varchar(255), $email varchar(255), $password varchar(255), $two_factor_authentication tinyint(1), $two_factor_authentication_secret varchar(255), $is_active tinyint(1) ) BE...
<reponame>soohyunkim/my-learning-analytics ALTER TABLE academic_terms CHANGE term_id id BIGINT UNSIGNED; ALTER TABLE academic_terms CHANGE start_date date_start TIMESTAMP DEFAULT CURRENT_TIMESTAMP; ALTER TABLE academic_terms CHANGE end_date date_end TIMESTAMP DEFAULT CURRENT_TIMESTAMP; ALTER TABLE academic_terms ADD C...
CREATE TABLE dbo.sample_nodetable (a int ) AS NODE GO CREATE TABLE dbo.sample_edgetable AS EDGE GO
{% macro spark__concat(fields) -%} concat({{ fields|join(', ') }}) {%- endmacro %}
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. DECLARE @ClaimSetId INT; DECLARE @AuthorizationStr...
select name, id, lifecycle_state from oci.oci_nosql_table where id = '{{ output.resource_id.value }}';
------------------------------ --- Beginning output_types --- each line with type info must have the same format as below, starting with '----- ' and finishing with '-----' ----- 'session_id': VARCHAR(16) ----- ----- 'count_events': INT() ----- ------------------------------ -- Creds to run job to be specified in con...
<filename>resources/sql/autopatches/20160928.tokentoken.sql CREATE TABLE {$NAMESPACE}_token.token_token ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, phid VARBINARY(64) NOT NULL, name VARCHAR(64) NOT NULL COLLATE {$COLLATE_TEXT}, flavor VARCHAR(128) NOT NULL COLLATE {$COLLATE_TEXT}, status VARCHAR(32...
<filename>tkt90.sql /* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50714 Source Host : 127.0.0.1:3306 Source Database : tkt90 Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-12-07 20:35:11 */ SET FOREIGN_KEY_CHEC...
<gh_stars>0 SET IDENTITY_INSERT [dbo].[Items] ON GO INSERT [dbo].[Items] ([ItemID], [Name], [Price]) VALUES (1, N'Chicken Tenders', CAST(3.50 AS Decimal(18, 2))) GO INSERT [dbo].[Items] ([ItemID], [Name], [Price]) VALUES (2, N'Chicken Tenders w/ Fries', CAST(4.99 AS Decimal(18, 2))) GO INSERT [dbo].[Items] ([Ite...
<filename>src/test/resources/db/migration/development/R__seed_data.sql -- Note that this script creates hard-coded ID numbers for ID values which ought to come from sequences. -- If you need to start inserting data via the app after creating the seed data, you will get conflicts so may need to reset the sequence with s...
<reponame>unicate/rigatoni DROP TABLE IF EXISTS `test_066`;
/* Warnings: - You are about to drop the `goods` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `ingredients` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE `Sale` DROP FOREIGN KEY `sale_ibfk_1`; --...
-- Database: mysql CREATE TABLE {table} ( id integer unsigned PRIMARY KEY AUTO_INCREMENT NOT NULL, domain varchar(64) NOT NULL, created timestamp NOT NULL, first_used timestamp NULL, last_used timestamp NULL, KEY d (Domain) );
<gh_stars>0 create unique index unique_moneyflow_1990_1994_tscode_date on moneyflow_1990_1994 (ts_code,trade_date); create index ind_moneyflow_1990_1994_tscode on moneyflow_1990_1994(ts_code); create index ind_moneyflow_1990_1994_trade_date on moneyflow_1990_1994(trade_date); create unique index unique_moneyflow_1995_...
SET FOREIGN_KEY_CHECKS=0; insert into tutorials (id, tutorialType, tutorialLink, createdAt, updatedAt, fk_topicID, fk_userID) values (1, 'video', 'https://www.youtube.com/embed/6fd8MzE0tvU', '2020-10-19 14:12:42', '2020-10-22 14:00:11', 2, 12); insert into tutorials (id, tutorialType, tutorialLink, createdAt, updatedAt...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-03-2020 a las 16:36:01 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
<reponame>CSC-IT-Center-for-Science/antero USE [AnteroAPI] GO /****** Object: StoredProcedure [dw].[p_lataa_api_tavoiteajassa_tutkinnon_suorittaneet_esilataus] Script Date: 14.2.2022 15:35:55 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dw].[p_lataa_api_tavoiteajassa_tutkinnon_suor...
drop table if exists CIF_CLASS_4; /*==============================================================*/ /* Table: CIF_CLASS_4 */ /*==============================================================*/ create table CIF_CLASS_4 ( CLASS_4 varchar(6) not null comment '用户自定义的分类代码', ...
<reponame>getwasim/egov-smartcity-suites-test<filename>egov/egov-wtms/src/main/resources/db/migration/main/V20180531154639__wcms_penalty_charges_percent_appconfigvalue.sql<gh_stars>1-10 Insert into eg_appconfig (id,key_name,description,version,createdby,lastmodifiedby,createddate,lastmodifieddate,module) values (nextv...
/* name: Placeholder :many */ SELECT * from foo;
<reponame>qiwi/seal_online_analysis_go_server INSERT INTO stat_bills_tag ( sbills_all_count, sbills_paid_count, sbills_all_amount, sbills_paid_amount, sbills_conversion, sbills_payments_count, sbills_payments_amount, sbills_health, sbills_pay_seconds, sbills_add_timestamp, sbills_add_section, sb...
<gh_stars>1-10 -- -- view -- create or replace view {SCHEMA}cube_apple_search_ads_campaign as with date_range as ( select decode(start_date_fixed, null, decode(start_date_offset, null, null, dateadd(day, start_date_offset, current_date)), start_date_fixed) as start_date, decode(end_date_fixed, null, decode(end_date...
<reponame>ellen-wu/springcloud-seata-demo # 授权sql 如果是使用的mysql8.0,那么请先创建用户,再授权 # 192.168.88.129 192.168.88.130 都执行 # 如需配置自己的用户和密码,请自行修改 GRANT ALL PRIVILEGES ON *.* TO 'ellen'@'%' IDENTIFIED BY 'ellen' WITH GRANT OPTION; FLUSH PRIVILEGES;
<filename>UmbracoDev/Umbraco/ucommerce/install/uCommerceDB.128.sql -- Remove all indexes that include AmountOffTotal on uCommerce_Discount. DECLARE @tableName nvarchar(500) DECLARE @indexName nvarchar(500) DECLARE @sql nvarchar(500) DECLARE remove_index_cursor CURSOR FOR SELECT OBJECT_NAME(ind.object_id) AS ObjectName...
-- autovacuum.test -- -- execsql { -- DROP TABLE av1; -- DROP TABLE av3; -- BEGIN; -- DROP TABLE av4; -- } DROP TABLE av1; DROP TABLE av3; BEGIN; DROP TABLE av4;
-- file:rolenames.sql ln:124 expect:false ALTER USER ALL WITH REPLICATION
-- 2017-11-27T12:55:36.951 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET AD_Process_ID=136, Description='Stücklisten-Struktur verifizieren', EntityType='EE01', InternalName='PP_Product_BOM', Name='Stückliste verifizieren',Updated=TO_TIMESTAMP('2017-11-27 12:55:36','YYYY-MM-DD HH2...
<filename>backend/de.metas.externalsystem/src/main/sql/postgresql/system/80-de.metas.externalsystem/5582500_sys_tweak_and_fix_external_system_windows.sql -- 2021-03-16T19:42:08.341Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-03...
set define off; PROMPT eba_stds_access_levels data PRO . eba_stds_access_levels data /* Packaged App Tracker access levels */ declare type rec_data is varray(3) of varchar2(4000); type tab_data is table of rec_data index by pls_integer; l_data tab_data; l_row eba_stds_access_levels%rowtype; begin -- Column...
<gh_stars>0 INSERT INTO KRNS_NMSPC_T (NMSPC_CD, VER_NBR, NM, ACTV_IND) VALUES ('KC-QUESTIONNAIRE', 1, 'KC Questionnaire', 'Y') ; Insert into KRNS_PARM_DTL_TYP_T ( nmspc_cd, parm_dtl_typ_cd, VER_NBR, NM, ACTV_IND) Values ('KC-QUESTIONNAIRE','P',1,'Permissions','Y'); insert into KRNS_PARM_T (NMSPC_CD,parm_dtl_typ_c...
<gh_stars>1-10 -- Traveler's Tundra Mammoth Vendors DELETE FROM `vehicle_template_accessory` WHERE `entry` IN (32640, 32633); INSERT INTO `vehicle_template_accessory` (`entry`, `accessory_entry`, `seat_id`, `minion`, `description`, summontype) VALUES (32640,32642,1,1, 'Traveler Mammoth (H) - Vendor', 8), (32640,32641,2...
<filename>III semester/database-basics/database-basics-2018-2019/Z4/popuni.sql<gh_stars>10-100 insert into kontinent (nazivkontinenta) values ('Europe'); insert into kontinent (nazivkontinenta) values ('Asia'); insert into kontinent (nazivkontinenta) values ('Australia'); insert into drzava (naziv, nazivkontinenta) val...
/* ref: https://github.com/datacharmer/test_db ref: https://dev.mysql.com/doc/employee/en/sakila-structure.html subset of the data for testing data with emp_no <= 10100 and current managers of each departments */ SET FOREIGN_KEY_CHECKS = 0; DELETE FROM departments; DELETE FROM employees; DELETE FROM dept_manager; ...
use mansi create table employe2(EmployeeId int, NationalIdNumber int, ContactId int, HireDate varchar(40)) insert into employe2 values(25, 360868122, 1054, '1999-01 00:00:00.000' ) insert into employe2 values(24, 498138869, 1113, '1999-01 00:00:00.000' ) insert into employe2 values(23, 687685941, 1173, '1999-01 00:00:0...
<gh_stars>1-10 ALTER TABLE "public"."zones_graphs" ADD COLUMN "channels_cnt_active" integer NOT NULL DEFAULT 0;
-- CB-1174 database server config environment IDs ALTER TABLE ONLY databaseserverconfig ADD CONSTRAINT uk_databaseserverconfig_deletiondate_workspace UNIQUE (name, deletionTimestamp, workspace_id); ALTER TABLE databaseserverconfig ADD COLUMN environmentid VARCHAR(255); UPDATE databaseserverconfig SET environmentid =...
ALTER TABLE education_zone DROP COLUMN education_zone;
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/INNERFUNC/generate_series/Opengauss_Function_Innerfunc_Generate_Series_Case0002.sql -- @testpoint: generate_series(start, stop, step)生成一个数值序列,从start到stop,步长为step。 -- int 类型的参数 SELECT * FROM generate_series(2,18,4); -- bigint 类型的参数 SELECT * FROM generate...
<filename>shopping.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2020 at 06:48 AM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<filename>08__F2__6_1__date_year.sql SELECT DATE(data_hora) FROM consulta_medica WHERE YEAR(data_hora)=2015;
<reponame>avcaliani/dmesh -- USER TABLE create table users ( id bigint not null auto_increment, username varchar(255) unique, description varchar(255), password varchar(255), primary key (id) ); -- USER DATA insert into users (username, description, password) values ('admin' , 'API Admin' ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 06 Des 2017 pada 09.17 -- Versi Server: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 01, 2019 at 03:13 PM -- Server version: 8.0.13-4 -- PHP Version: 7.2.19-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
DROP TABLE styles; DROP TYPE style_unit; DROP TYPE style_property;
-- Demonstration A -- Step 1: Open a new query window to the TSQL database USE TSQL; GO -- Step 2: Creating Windows with OVER -- Setup views for demo IF OBJECT_ID('Production.CategorizedProducts','V') IS NOT NULL DROP VIEW Production.CategorizedProducts GO CREATE VIEW Production.CategorizedProducts AS SELECT Pr...
CREATE TABLE Users( Id UNIQUEIDENTIFIER PRIMARY KEY );
<reponame>tied/innovation-funding-service<gh_stars>10-100 INSERT INTO role (id, name) VALUES (24, 'cofunder');
<filename>sql/create_registered_agent_personal.sql CREATE TABLE REGISTERED_AGENT_PERSONAL ( FILING_NUM TEXT, LAYOUT_CODE TEXT, ADDRESS1 TEXT, ADDRESS2 TEXT, CITY TEXT, STATE TEXT, ZIP_CODE TEXT, ZIP_EXTENSION TEXT, COUNTRY TEXT, INACTIVE_DATE DATE, AGENT_LAST_NAME TEXT, A...
UPDATE leads SET leadStatus = NULL WHERE leadStatus = 'active';
<reponame>Shuttl-Tech/antlr_psql -- file:alter_table.sql ln:2385 expect:true alter table perm_part_parent attach partition temp_part_child for values in (1, 2)
<reponame>noobatl/employee-management-system INSERT INTO department (dept_name) VALUES ('Sales'), ('Engineering'), ('Finance'), ('Legal'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Lead', 100000, 1), ('Salesperson', 80000, 1), ('Lead Engineer', 150000, 2), ('Software Engineer'...
<reponame>maxim-tschumak/zmon-controller<filename>database/zmon/20_api/05_stored_procedures/55_grafana_sprocs.sql CREATE OR REPLACE FUNCTION create_or_update_grafana_dashboard(id text, title text, dashboard text, user_name text, version text) RETURNS void AS $$ BEGIN -- RAISE WARNING 'dashboard: % title: %', dashboar...
/* * MySQL Script - initializeDataBase.sql. * Create EMPLOYEE_RECORDS database and EMPLOYEES table. */ -- Create EMPLOYEE_RECORDS database CREATE DATABASE IF NOT EXISTS EMPLOYEE_RECORDS; -- Switch to EMPLOYEE_RECORDS database USE EMPLOYEE_RECORDS; -- create EMPLOYEES table in the database CREATE TABLE IF NOT EX...
<filename>DXInfo.Models/SqlServerScript/proc_balance_bydate.sql IF not EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[proc_balance_bydate]') AND type in (N'P')) begin exec(' CREATE procedure [dbo].[proc_balance_bydate](@BeginDate date,@EndDate date) as begin delete from BalanceProc where Balanc...
-- A simple query of the students table SELECT * FROM students; -- Find all students with the surname Jones SELECT * FROM students WHERE surname='Jones';
<reponame>189569400/ClickHouse<gh_stars>1-10 DROP TABLE IF EXISTS test.storage; CREATE TABLE test.storage(UserID UInt64) ENGINE=Memory; INSERT INTO test.storage(UserID) values (6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(64604327213938737...
<reponame>InsightsDev-dev/tajo select round(pow(key + 1, 2)) from testQueryCasesOnColumnPartitionedTable