sql
stringlengths
6
1.05M
<filename>src/App/ToolsBundle/Resources/xml/user_info.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 01, 2015 at 02:42 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101...
<reponame>uk-gov-mirror/ministryofjustice.hmpps-interventions-service insert into pcc_region (id, name, nps_region_id) values ('metropolitan', 'London (Metropolitan Police)', 'J'); update dynamic_framework_contract set pcc_region_id = 'metropolitan' where pcc_region_id = 'city-of-london'; delete from pcc_...
<reponame>robsonhenriq/emissor-fiscal<filename>doc/scripts/cadastros-tributacoes-estaduais/Interestadual/3_VENDA_INTERESTADUAL_FISICA/3_VENDA_INTERESTADUAL_FISICA_PRODUTO_IMPORTADO.sql -- PARA PRODUTOS IMPORTADOS (Aliq 4 PORCENTO) -- ==================================================== 3 | VENDA INTERESTADUAL (FISIC...
<filename>src/test/resources/sql/drop_access_method/2075518d.sql<gh_stars>10-100 -- file:drop_if_exists.sql ln:232 expect:true DROP ACCESS METHOD IF EXISTS no_such_am
create table system_scanner_configure ( id char(36) not null, type mediumtext not null, `key` mediumtext not null, value mediumtext not null, updatedAt datetime(3) not null, createdAt datetime(3) not null, constraint id_UNIQUE unique (id) );
UPDATE creature_template SET ScriptName='npc_niby_the_almighty' WHERE entry=14469;
select string_8 from nulls3 where rowid = 22 and string_8 <> '021'
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2017 at 03:16 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>oxygen1997/Mybatis-Demo /* Navicat Premium Data Transfer Source Server : localhost@root-3306 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : mybatis Target Server Type : MySQL Target Server Version : 50726 File En...
<filename>Sample/Sample.Database/Procedures/RoleDeleteOne.sql if object_id('dbo.RoleDeleteOne', 'P') is not null drop procedure dbo.RoleDeleteOne go create procedure dbo.RoleDeleteOne @roleID int as delete from dbo.Role where roleID = @roleID go
<filename>model/jpa/testData/create_db_content.ddl CREATE TABLE push_application ( id VARCHAR(255) NOT NULL, description VARCHAR(255), developer VARCHAR(255), master_secret VARCHAR(255), name VARCHAR(255) NOT NULL, api_key VARCHAR(255), PRIMARY KEY (id) ); C...
<filename>packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql /************************************************************************************ DATABASE APPLICATION CONFIGURATION FILE This file is used to update the vdc_options configuration table. The following sections are available: Add ...
<gh_stars>1-10 select last_value(employee_id) over(partition by position_id order by line_no) as `last_value` from dfs_test.`%s/window/b4.p4`
ALTER TABLE clients add organization_id int8 not null; ALTER TABLE clients ADD constraint fk_clients_organization_id foreign KEY (organization_id) REFERENCES organizations (id);
create sequence if not exists hibernate_sequence; create table if not exists flyway_schema_history ( installed_rank integer not null constraint flyway_schema_history_pk primary key, version varchar(50), description varchar(200) not null, type varchar(20) not null, script varchar(1000) not null, checksum int...
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. col sqll_sql_text head SQL_TEXT word_wrap select sql_text sqll_sql_text from v$sqltext where hash_value = &1 order by piece;
-- This script shows the problem. When run in a psql connected to -- pgpool with one master and one read-only replica, this will cause -- the pgpool process to exit because the exception found in the -- commit (in the master node) does not match the success code for the -- commit in the read-only replica. -- The expec...
CREATE EXTERNAL TABLE `kite_link_stats_youtube_channels`( id string, name string, last_updated string, is_backfilled boolean, last_backfill_until string ) ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.ap...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 31, 2018 at 11:46 PM -- Server version: 5.7.22-0ubuntu0.16.04.1 -- PHP Version: 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
<gh_stars>0 SELECT *,@@SPID FROM sys.dm_pdw_exec_sessions where not sql_spid = @@SPID and login_name = 'A1002831' and [app_name] like '%query%'
insert into ims.customers(first_name, surname, address) values('chris', 'perrins', '3 Quarry Road'); insert into ims.customers(first_name, surname, address) values('rhys', 'thompson', '6 Toy Road'); insert into ims.customers(first_name, surname, address) values('nic', 'johnson', '34 Elephant Way'); insert into ims.cust...
<gh_stars>0 -- Part III: Migrate the provided data (DML: Data Manipulation Language, DQL: Data Query Language) /* Guidelines 1. Topic descriptions can all be empty 2. Since the bad_comments table doesn’t have the threading feature, you can migrate all comments as top-level comments, i.e. without a paren...
<filename>sql/yjbb/600389.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'600389',@CutoffDate = N'2017-09-30',@EPS = N'0.2939',@EPSDeduct = N'0',@Revenue = N'24.00亿',@RevenueYoy = N'-38.22',@RevenueQoq = N'-17.61',@Profit = N'8728.26万',@ProfitYoy = N'979.41',@ProfiltQoq = N'-24.79',@NAVPerUnit = N'4.8246',@ROE = N'6.15',@Cash...
--USE [TestDb] --GO BEGIN TRANSACTION if (not exists (select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA = 'dbo' and TABLE_NAME = 'Gunter_Example')) begin SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; CREATE TABLE [dbo].[Gunter_Example] ( [_id] [int] NOT NULL, [_text] [nvarchar](max) NULL, [_flag]...
<reponame>Oreder/databaseFullCourse USE XQuery; GO --=============== Create XML schema ================== CREATE XML SCHEMA COLLECTION top_xsd AS '<?xml version="1.0" encoding="utf-8"?> <xs:schema id="top" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:e...
<reponame>fullstack-build/fullstack-one<filename>_v1_mig3/packages/file-storage/pgFunctions/file_storage.file_deleteone_admin.function.sql<gh_stars>10-100 -- file_deleteone function deletes one file finally => for usage after deleted from bucket CREATE OR REPLACE FUNCTION _file_storage.file_deleteone_admin(i_file_id u...
<filename>src/main/resources/db/migration/veilarbregistreringDB/V1_49__tilstand_for_historiske_registreringer.sql INSERT INTO REGISTRERING_TILSTAND (ID, BRUKER_REGISTRERING_ID, OPPRETTET, SIST_ENDRET, STATUS) SELECT REGISTRERING_TILSTAND_SEQ.nextval AS ID, br.BRUKER_REGISTRERING_ID AS BRUKER_REGI...
-- IFS-3814 Fixing priorities of 'Other funding' question broken by IFS-3088. -- 'Other funding' was incorrectly appearing ABOVE the 'Funding level' question on the Your Funding page for applicants -- Bump the priority of all 'Other funding' questions on competitions that have the new view. -- Now they will have a low...
<reponame>xgarci08/chinoookdb_copy<filename>src/Chinook/dbo/Stored Procedures/sproc_GetPlaylist.sql CREATE PROCEDURE [dbo].[sproc_GetPlaylist] AS SELECT CAST((SELECT * FROM [Playlist] FOR JSON PATH) AS VARCHAR(MAX)) AS JSONDATA
<filename>t/unit/bin/Infusion/Configure/inputs/db/sql/harddisk.sql CREATE TABLE harddisk ( harddisk_id int(10) NOT NULL AUTO_INCREMENT, serial_number varchar(100) NOT NULL, drive_label varchar(45) NOT NULL, mount_point varchar(245) NOT NULL, max_usable_size_GB int(11) NOT NULL, diskloader_hostname varchar(...
<filename>data_model/sql_dataload/prod_dataload_perov_desc_def.sql /* Navicat Premium Data Transfer Source Server : postgres12 escalate Source Server Type : PostgreSQL Source Server Version : 120001 Source Host : localhost:5432 Source Catalog : escalate Source Schema : dev ...
SET NOCOUNT ON; INSERT INTO ExampleEntities] //#A ([MyMessage]) VALUES (@p0);//#A SELECT [ExampleEntityId] //#B FROM [ExampleEntities] //#B WHERE @@ROWCOUNT = 1 AND //#B [ExampleEntityId] = scope_identity(); //#B #A This inserts (creates) a new row in the table ExampleEntities ...
create table MES.GoLive_N_SPWR_EL_OUTS as SELECT T2.*, case when (pmod(datediff(ShiftStart_DateTime,'1900-01-07'),7) + 1 in (1,2,3) and WEEKOFYEAR(ShiftStart_DateTime) % 2 = 1 or pmod(datediff(ShiftStart_DateTime,'1900-01-07'),7) + 1 in (1,2,3,4) and WEEKOFYEAR(ShiftStart_DateTime) % 2 = 0...
create table jms_message( id VARCHAR(36) NOT NULL PRIMARY KEY, status VARCHAR(10) NOT NULL DEFAULT 'PENDING', data TEXT not null, queue VARCHAR(100) NOT NULL, max_retries INTEGER NOT NULL DEFAULT 5, retries INTEGER NOT NULL DEFAULT 0, last_change TIMESTAMP );
<filename>sql/antal_nya_synonymer.sql SELECT count(*) FROM snomed_full_SE1000052_20180531.descriptions WHERE active = 1 AND effectiveTime = 20180531 AND conceptId IN ( SELECT conceptId FROM snomed_full_SE1000052_20180531.descriptions WHERE active = 1 AND languageCode = "sv" GROUP BY conceptId HAVING count(id...
<filename>module/Application/data/create.sql /* Created: 06/12/2013 Modified: 15/03/2014 Model: MySQL 5.1 Database: MySQL 5.1 */ -- Create tables section ------------------------------------------------- -- Table Users CREATE TABLE Users ( userid Int UNSIGNED NOT NULL AUTO_INCREMENT, roleid Int UNSIGNED NOT NULL...
<filename>DMS_Capture/CacheDatasetInfoXML.sql<gh_stars>1-10 /****** Object: StoredProcedure [dbo].[CacheDatasetInfoXML] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure dbo.CacheDatasetInfoXML /**************************************************** ** ** Desc: Caches the XML-based datas...
<reponame>akhalymon-cv/spark<gh_stars>1000+ -- unresolved function select * from dummy(3); -- range call with end select * from range(6 + cos(3)); -- range call with start and end select * from range(5, 10); -- range call with step select * from range(0, 10, 2); -- range call with numPartitions select * from range(...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-04-17 02:46:42 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 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 INSERT INTO reply (dt_add, price, content, user_id, task_id) VALUES ('2019-05-09', '2000', 'Могу сделать всё в лучшем виде. У меня есть необходимый опыт и инструменты.', '10', '1'), ('2018-10-27', '1900', 'Примусь за выполнение задания в течение часа, сделаю быстро и качественно.', '11', '1'), ('2018-11-02'...
-- @testpoint: opengauss关键字security(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists security; create function security(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / drop function if exists security; --关键字带双引号-成功 drop function if exists "security"; create function "securit...
-- @testpoint:opengauss关键字current_path(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists current_path; create database current_path; drop database current_path; --关键字带双引号-成功 drop database if exists "current_path"; create database "current_path"; drop database "current_path"; --关键字带单引号-合理报错 drop database if exists 'c...
/* Navicat Premium Data Transfer Source Server : Dissertation Source Server Type : MariaDB Source Server Version : 100408 Source Host : localhost:3306 Source Schema : dissertation Target Server Type : MariaDB Target Server Version : 100408 File Encoding : 65001 Date:...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2019 at 11:51 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- *************************************************************************** -- File: 12_7.sql -- -- Developed By TUSC -- -- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant -- that this source code is error-free. If any errors are -- found in this source code, please repo...
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.19 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 9.4.0.5125 -- -------------------------------------------------------- /*...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2019 at 11:47 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.1.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
USE SoftUni SELECT TOP 10 FirstName, LastName, DepartmentID FROM Employees AS Emp1 WHERE Salary > ( SELECT AVG(Salary) FROM Employees AS Emp2 WHERE Emp1.DepartmentID = Emp2.DepartmentID GROUP BY DepartmentID )
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2019 at 11:57 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
# DB 생성 CREATE DATABASE site7; #articles 데이터 생성 INSERT INTO articles SET created_at = NOW(), updated_at = NOW(), user_id = 10, title = "제목", `body` = '내용';
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(40) NOT NULL, deparment_name VARCHAR(40), price FLOAT, stock_quantity INT, PRIMARY KEY(item_id) );
<gh_stars>0 SELECT * FROM q1 ORDER BY countryName, wonElections, partyName DESC ;
CREATE DATABASE IF NOT EXISTS videos_application; USE videos_application; CREATE TABLE users( id int(255) auto_increment not null, role varchar(20), name varchar(255), surname varchar(255), email varchar(255), password varchar(255), image varchar(255), created_...
<reponame>pzim-devdata/dev-data<filename>chef-d'oeuvre/chef_d_oeuvre/MySQL/Dump/IDF_Temps_voiture.sql CREATE DATABASE IF NOT EXISTS `IDF` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `IDF`; -- MySQL dump 10.13 Distrib 5.7.28, for Linux (x86_64) -- -- Host: localhost Database: IDF -- ------------------------------...
USE [ANTERO] GO /****** Object: StoredProcedure [dw].[p_lataa_f_arvo] Script Date: 14.2.2018 16:02:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dw].[p_lataa_f_arvo] AS TRUNCATE TABLE dw.f_arvo INSERT INTO dw.f_arvo ( d_organisaatio_id, d_koulutusluokitus_id, d_kieli_id, d_...
DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `login` varchar(50) DEFAULT NULL, `user_name` varchar(50) DEFAULT NULL, `pswd` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; D...
alter table prefs add unique index (usersid) ;
CREATE TABLE engine( id SERIAL PRIMARY KEY, name VARCHAR(256) ); INSERT INTO engine(name) VALUES('бензиновые'), ('дизельные'), ('газовые'); CREATE TABLE gearbox( id SERIAL PRIMARY KEY, name VARCHAR(256) ); INSERT INTO gearbox(name) VALUES('механическая'), ('автоматическая'), ('роботизированная'), ('вариативная...
<filename>5-data-modeling/sql-runner/redshift/sql/web-incremental/01-id-stitching/01-id-stitching.sql -- Copyright (c) 2013-2015 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache ...
SELECT dept_no, dept_name, COALESCE(dept_no, dept_name) AS dept_info FROM departments ORDER BY dept_no ASC;
drop table if exists worker; drop table if exists task; create table worker ( id int primary key auto_increment not null, name varchar(64) not null ); create table task ( id int primary key auto_increment not null, workerId int not null, task varchar(128) not null, foreign key(workerId) references worker(id...
update ACT_GE_PROPERTY set VALUE_ = '6.7.1.0' where NAME_ = 'common.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.7.1.0' where NAME_ = 'entitylink.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.7.1.0' where NAME_ = 'identitylink.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.7.1.0' where ...
/* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* This script creates group-items for public items for the public group. */ /* Run this script once against each instance of Cyclopath @once-per-instance */ \qecho \qecho This script ...
<reponame>Spot-up/dishes -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 02 2021 г., 12:26 -- Версия сервера: 5.7.31 -- Версия PHP: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
DROP TABLE v5_0_ballot_measure_contests; DROP TABLE v5_0_ballot_selections; DROP TABLE v5_0_ballot_styles; DROP TABLE v5_0_candidates; DROP TABLE v5_0_candidate_contests; DROP TABLE v5_0_candidate_contest_ballot_selections; DROP TABLE v5_0_contact_information; DROP TABLE v5_0_departments; DROP TABLE v5_0_elections; DRO...
UPDATE attachments SET downloadStage = :downloadStage WHERE id = :id
--TEST: test with range partition table autocommit off; drop table if exists p_disc; create table p_disc( col1 int auto_increment, col2 smallint not null, col3 char(20) default 'abc', col4 datetime default SYS_DATETIME, col5 bit varying ) partition by range(col2) ( partition p1 values less than(10), partitio...
<reponame>yuting1214/Leetcode_Database<filename>code_sample/lc_570.sql # Table CREATE TABLE Employee ( Id varchar(300), Name varchar(300), Department varchar(300), ManagerId varchar(255) ); INSERT INTO Employee ( Id , Name , Department , ManagerId ) VALUES ('101', 'John', 'A', NULL), ('...
<reponame>justin-collins/image-saver UPDATE settings SET saved_value = 'false' WHERE setting == 'show_quickstart'
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2019 at 02:08 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>database/dacsanchat (4).sql -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 22, 2019 at 05:16 PM -- Server version: 5.7.28-0ubuntu0.16.04.2 -- PHP Version: 7.2.20-2+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_...
CREATE TABLE [dbo].[Folders] ( [Id] UNIQUEIDENTIFIER CONSTRAINT [DF_Folders_Id] DEFAULT (newsequentialid()) NOT NULL, [Name] NVARCHAR (MAX) NOT NULL, [Sort] INT NOT NULL, CONSTRAINT [PK_Folders] PRIMARY KEY CLUSTERED ([Id] ASC) ); GO EXECUTE sp_addextendedproperty @name = N'MS_Descri...
<gh_stars>0 /* Queries for Excel File Author: <NAME> */ /*List of translated accommodations to all languages*/ select o.own_mcp_code, o.own_name from ownership o where o.own_status = 1 and (select count(*) from ownershipdescriptionlang odl where odl.odl_id_ownership = o.own_id and odl.odl_description <> "") >= 3; /*...
<reponame>Data-Learn/SQLforBeginers USE [AdventureWorks2019]; --Создать синоним CREATE SYNONYM P1 FOR [Person].[Person]; --Сделать выборку из исходной таблицы SELECT * FROM [Person].[Person]; --Сделать выборку из исходной таблицы, обращаясь к её синониму SELECT * FROM P1; --Удалить созд...
USE [master] GO /****** Object: Database [GNIS] Script Date: 9/18/2019 10:33:45 PM ******/ CREATE DATABASE [GNIS] CONTAINMENT = NONE ON PRIMARY ( NAME = N'GNIS', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\GNIS.mdf' , SIZE = 401408KB , MAXSIZE = UNLIMITED, FILEGROWT...
/* Use cube operation on the group by clause to create all possible combination of sets of grouping columns */ select company_division, company_regions, count(*) from staff_div_reg group by cube (company_division, company_regions) order by count(*) desc;
DELETE FROM countries WHERE destination = 'Tokyo';
<reponame>FieryInferno/jasa_lapangan_kerja<filename>cari_kerja.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 21, 2021 at 04:53 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTIO...
CREATE DATABASE /*!32312 IF NOT EXISTS*/`db_goskeleton` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `db_goskeleton`; /*Table structure for table `tb_users` */ DROP TABLE IF EXISTS `tb_users`; CREATE TABLE `tb_users` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `user_name` VARCHAR(30) DEFAULT '' COMMENT '账号...
<filename>test/fixtures/dialects/sparksql/reset.sql RESET; RESET spark.abc;
<reponame>linenhui023/bluejay-admin /* Navicat Premium Data Transfer Source Server : 本地8.0.23 Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : db_bluejay_system Target Server Type : MySQL Target Server Version : 80011 File E...
CREATE OR REPLACE VIEW vw_materials AS SELECT a.id as material_id, a.name as material_name, a.description, a.image as material_image, a.ip_address, a.status as material_status, a.created_at, a.updated_at, b.name as addedby_user_name, c.name as modifiedby_user_name FROM materi...
CREATE OR REPLACE VIEW vw_measurements AS SELECT a.id as measurement_id, a.measurement_date, a.customer_id, a.measurements_person_name, a.sex as gender, a.length, a.waist, a.bottom, a.thigh, a.round, a.fly, a.shoulder, a.sleeves, a.chest, a.tummy, a.bice...
DROP TABLE IF EXISTS acs2015_1yr.tmp_geoheader; CREATE TABLE acs2015_1yr.tmp_geoheader ( all_fields varchar ) WITH (autovacuum_enabled = FALSE, toast.autovacuum_enabled = FALSE) ;
CREATE TABLE users ( id SERIAL, username VARCHAR(25) NOT NULL, enabled BOOLEAN DEFAULT TRUE, last_login TIMESTAMP NOT NULL, PRIMARY KEY (id) );
<filename>conf/evolutions/default/29.sql # --- !Ups ALTER TABLE location ADD COLUMN website VARCHAR DEFAULT NULL; ALTER TABLE location ADD COLUMN phone VARCHAR DEFAULT NULL; ALTER TABLE location ADD COLUMN comment VARCHAR DEFAULT NULL; ALTER TABLE location ADD COLUMN link VARCHAR DEFAULT NULL; ALTER TABLE images ADD ...
<filename>components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/resources/sql/CreateH2TestDB.sql CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE ( ID INT auto_increment NOT NULL, NAME VARCHAR(300) NULL DEFAULT NULL, PRIMARY KEY (ID) ); CREATE TABLE IF NOT EXISTS DM_GROUP ( ID INT...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 13-Maio-2020 às 01:48 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- -- Name: code_category; Type: TABLE; Schema: bctw; Owner: bctw -- CREATE TABLE bctw.code_category ( code_category_id integer NOT NULL, code_category_name character varying(100) NOT NULL, code_category_title character varying(40) NOT NULL, code_category_description character varying(4096), valid_...
<filename>scripts/catalogo_santafe.sql<gh_stars>0 INSERT INTO `catalogo` (`id_catalogo`, `cuenta_contable`, `descripcion`, `nivel`, `condicion`) VALUES (NULL, '1.00.00.00.000', 'ACTIVO', 1, 'Activo'), (NULL, '1.01.00.00.000', 'ACTIVO CIRCULANTE', 2, 'Activo'), (NULL, '1.01.01.00.000', 'Activo disponible', 3, 'Activo')...
<reponame>kkrampa/commcare-hq DROP VIEW IF EXISTS service_delivery_monthly CASCADE; CREATE VIEW service_delivery_monthly AS SELECT "awc_location_months"."awc_id" AS "awc_id", "awc_location_months"."awc_name" AS "awc_name", "awc_location_months"."awc_site_code" AS "awc_site_code", "awc_location_months"."supervisor_id" A...
<reponame>bloomberg/cartodb-postgresql ---------------------------------- -- CONF MANAGEMENT FUNCTIONS -- -- Meant to be used by superadmin user. -- Functions needing reading configuration should use SECURITY DEFINER. ---------------------------------- -- This will trigger NOTICE if cartodb.CDB_CONF already exists DO ...
-- Table structure for table: release_provides CREATE TABLE release_provides ( name TEXT, version TEXT, specifier TEXT, FOREIGN KEY (name, version) REFERENCES releases (name, version) ); CREATE INDEX rel_prov_name_idx ON release_provides(name); CREATE INDEX rel_prov_version_id_idx ON release_provides(versi...
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>1-10 --+ holdcas on; drop table if exists tbl01part; CREATE TABLE tbl01part( i integer, s VARCHAR(30) ) collate utf8_en_cs PARTITION BY RANGE (i) (PARTITION before_100 VALUES LESS THAN (100), PARTITION after_100 VALUES LESS THAN MAXVALUE ); show full columns from tbl01p...
USE Stargate; -- Serilog.Sinks.MSSqlServer (https://github.com/serilog-mssql/serilog-sinks-mssqlserver) CREATE TABLE dbo.[SerilogLogs] ( [Id] int IDENTITY(1,1) NOT NULL, [Message] nvarchar(max) NULL, [MessageTemplate] nvarchar(max) NULL, [Level] nvarchar(128) NULL, [TimeStamp] datetimeoffset(7) NOT NULL, -...
<filename>sql file/operations.sql<gh_stars>0 INSERT INTO `operations` (`id`, `service_id`, `service_provider_id`, `service_user_id`, `address`, `flag`, `description`, `rating_review_id`, `completed_time`, `created_at`, `updated_at`) VALUES (1, 1, 1, 2, 'Budhabare-2, Ojhasahar, Chitwan 47664', 1, 'Dictumst quisque sagit...
/* ===================================================================================================================== trigger: locationToUpper() whatdoes: pasa a mayusculas los atributos country, region, city. ===========================================================================================================...
CREATE DATABASE IF NOT EXISTS `code_hris` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `code_hris`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: 127.0.0.1 Database: code_hris -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Mar 04, 2019 at 11:01 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
<reponame>hoanvokim/saigon<filename>local_beu_2019-09-04.sql # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.4.6-MariaDB) # Database: local_beu # Generation Time...