sql
stringlengths
6
1.05M
select (array['a', 'b', 'c', foo, bar])[1:5], quz[42:50] from baz
-- AUTO-GENERATED BY schema-ddl DO NOT EDIT -- Generator: schema-ddl 0.2.0 -- Generated: 2016-02-12 13:45 CREATE SCHEMA IF NOT EXISTS atomic; CREATE TABLE IF NOT EXISTS atomic.io_augur_snowplow_identity_lite_1 ( "schema_vendor" VARCHAR(128) ENCODE RUNLENGTH NOT NULL, "schema_name" VARCHAR(128) ...
<gh_stars>100-1000 DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '账户Id', `email` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '邮箱', `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '账户名', `password` v...
SELECT MAX(TableName) as TableName, server_id, server_name, environment_id, description, active, LastUpdate FROM ( SELECT 'OSQLUTIL12_Status_dbo.t_server' as TableName, server_id, server_name, environment_id, description,active, LastUpdate FROM OSQLUTIL12_Status_dbo.t_server UNION ALL SELECT 'ISQLCBS510_StatusI...
<gh_stars>10-100 ALTER TABLE TrackedEntityAttribute RENAME TO TrackedEntityAttribute_Old; CREATE TABLE TrackedEntityAttribute (_id INTEGER PRIMARY KEY AUTOINCREMENT, uid TEXT NOT NULL UNIQUE, code TEXT, name TEXT, displayName TEXT, created TEXT, lastUpdated TEXT, shortName TEXT, displayShortName TEXT, description TEXT,...
CREATE TABLE my_aspnet_sessions ( SessionId varchar(191) NOT NULL, ApplicationId int NOT NULL, Created datetime NOT NULL, Expires datetime NOT NULL, LockDate datetime NOT NULL, LockId int NOT NULL, Timeout int NOT NULL, Locke...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 04, 2022 at 07:30 PM -- Server version: 5.7.24 -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
INSERT INTO userInfo (name, phone, email, logo, pictures, schedule, services, interests, businessType, modules) VALUES ("Great business", "yelp", "yelp", "logo.png", "[picture1.jpg, picture2.jpg]", "{yelp object}", "services.pdf", "[1, 2]", 5, "[1,2,3,4]"); INSERT INTO businessType (typeName, interests, modules) VALUES...
<reponame>idbmb/citakreasi -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 11, 2016 at 04:58 PM -- Server version: 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...
-- AlterTable ALTER TABLE "Picture" ADD COLUMN "descriotion" TEXT;
<gh_stars>0 DROP TABLE favorite_meta; DROP TABLE favorite_primary; DROP TABLE favorite_type;
-- Возвращает год начала работы хирурга !!!!!!!! CREATE OR REPLACE FUNCTION StartedWork(lid INTEGER) RETURNS INTEGER AS $$ request = "SELECT * FROM surgeon" surg = plpy.execute(request) for cur in surg: if cur['surgeonid'] == lid: return cur['age'] - cur['workexp'] plpy.error("There...
#create table #nombre de la tavla #campo de los atributos #definicion de cad campo #create table nombre_tabla(nombre de la columna, tipo de la columna) #aparte de definir el nobre y tipo se pueden añadir opciones extras, como por ejemplo: # not null = eso va a pertmitir que cuando querarmos ingresar o editar una tupl...
<filename>tests/csql/dest/numericLength/user.sql CREATE TABLE `user` ( `a` INT(10) NOT NULL, `b` INT(10) UNSIGNED NOT NULL DEFAULT 2, `c` FLOAT(5) NOT NULL ) CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci ;
<gh_stars>0 -- -- @author <NAME> -- Gerenciador de senhas em JAVA com Mysql -- -- Logar como root mysql -u root -p -- Cria o usúario para conexão com o BD create user note@localhost identified by 'note'; -- Fornce as permissões necessárias grant all privileges on *.* to note@localhost; -- Atualizar as permissões flush...
-- BUS-ADM 749 Data and Information Management -- <NAME> -- Continental Palms DVD -- create_tables.sql -- Create Branch table CREATE TABLE Branch ( branchNo CHAR(4), street VARCHAR2(25) NOT NULL, city VARCHAR2(15) NOT NULL, state CHAR(2) NOT NULL, zip VARCHAR2(5) NOT NULL, CO...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 25, 2020 at 05:53 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE TABLE success_story (id int, description text, guru_id int references guru(id)); INSERT INTO success_story (id, description, guru_id) SELECT n, md5(n::text), random()*99999+1 from generate_series(1,200000) as foo(n) ; EXPLAIN ANALYZE SELECT * FROM guru inner JOIN success_story on guru.id =success_story.guru_id W...
<filename>server/new_database_pure.sql DROP DATABASE IF EXISTS NoteHubDB_pure; CREATE DATABASE NoteHubDB_pure; USE NoteHubDB_pure; CREATE TABLE User ( userId VARCHAR(255) PRIMARY KEY, firstName VARCHAR(255) NOT NULL, lastName VARCHAR(255) NOT NULL, subtitle VARCHAR(255) DEFAULT "New user", email V...
CREATE DATABASE managment_db; USE managment_db; CREATE TABLE employee( first_name varchar(30), last_name varchar(30) ); CREATE TABLE department( department_name varchar(30), department_id INTEGER(4) auto_increment not null, primary key (department_id) ); CREATE TABLE role( title varchar(30), salary decimal );
<reponame>srahn/kvwmap BEGIN; CREATE OR REPLACE FUNCTION ukos_okstra.split_strassenelemente() RETURNS trigger AS $BODY$ DECLARE tolerance NUMERIC; se RECORD; teil_anfang_id CHARACTER VARYING; teil_ende_id CHARACTER VARYING; new_se_id CHARACTER VARY...
<reponame>iuri/tutortronics -- /packages/intranet-expenses-workflow/sql/postgresql/intranet-expenses-workflow-create.sql -- -- Copyright (c) 2003-2008 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- -- @author <EMAIL> -- Import default workflow for expens...
DELIMITER // DROP FUNCTION IF EXISTS dept_count; CREATE FUNCTION dept_count(dept_name VARCHAR(20)) RETURNS INTEGER BEGIN DECLARE tmp_count, d_count INTEGER DEFAULT 0; SELECT count(*) INTO tmp_count from instructor where instructor.dept_name = dept_name; SET d_count = tmp_count; RETURN d_count; END// DELIMITER...
<reponame>radekg/kratos DROP INDEX `selfservice_login_flows_nid_idx` ON `selfservice_login_flows`;
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50617 Source Host : localhost:3306 Source Database : tpblog Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2017-12-29 15:34:53 */ SET FOREIGN_KEY_CHECKS=0; ...
// Import Messages as Nodes and Its Relationship to Their Contacts CALL apoc.load.json("file:///result.json") YIELD value AS row UNWIND row.chats.list as Chats UNWIND Chats.messages as Msg WITH Msg WHERE keys(Msg) = ["date","from_id","from","id","text","type"] AND apoc.meta.type(Msg.text) = "STRING" CREATE (Telegram_m...
fullscreen #f undecorated #f win-origin 30 30 win-size 1000 800 cursor-hidden #f fmod-use-surround-sound #t audio-library-name p3openal_audio
<filename>db/Test_Image_create_tables.sql<gh_stars>0 -- -- Database Schema: test -- Automatically generated sql script for the service Test Image, created by the CAE. -- -------------------------------------------------------- -- -- Table structure for table ImageTable. -- CREATE TABLE test.ImageTable ( Name VARCHA...
# pair extension comment = 'A key/value pair data type' default_version = '1.0' # cannot be relocatable because of use of @extschema@ relocatable = false
<reponame>lixun910/cartodb<filename>lib/sql/test/CDB_StatsTest.sql<gh_stars>100-1000 -- continuous uniform distribution has kurtosis = -6/5, skewness = 0.0 -- http://mathworld.wolfram.com/UniformDistribution.html set client_min_messages to ERROR; WITH dist AS ( SELECT generate_series(0,10000)::numeric / 10000.0 i ) ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 17, 2017 at 07:54 PM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>Mathtin/mc-discord-bot ALTER ROLE root SUPERUSER;
-- -- <NAME>. -- Prepared SQL queries for 'PipelinelatestRun' definition. -- -- -- SELECT template for table `PipelinelatestRun` -- SELECT `artifacts`, `durationInMillis`, `estimatedDurationInMillis`, `enQueueTime`, `endTime`, `id`, `organization`, `pipeline`, `result`, `runSummary`, `startTime`, `state`, `type`, `co...
drop table if exists `tcs_cat_kepler_k2_pixels`; -- #kepid,ra,dec,module,output,row,column create table `tcs_cat_kepler_k2_pixels` ( `id` int unsigned not null auto_increment, `kepid` char(40) not null, `ra_deg` double not null, `dec_deg` double not null, `module` int, `output` int, `row` int, `column` int, `campaign`...
CREATE TABLE pm_headers( pm_id INT NOT NULL ,pm_date DATE NULL ,vehicle_id INT NULL ,comment NTEXT(2147483646) NULL ,status_id INT NULL ,created_by INT NULL ,created_date DATETIME NULL ,updated_by INT NULL ,updated_date DATETIME NULL)
DROP TABLE IF EXISTS `test_128`;
ALTER TABLE days DROP COLUMN day_comment; ALTER TABLE days DROP COLUMN day_target_time; ALTER TABLE days ADD COLUMN day_target_time interval; UPDATE days SET day_target_time = interval '7 hours 42 minutes'; UPDATE days SET day_target_time = interval '0 hours' WHERE extract(dow from day_date::timestamp) IN (0,6); ALTER...
<gh_stars>1-10 INSERT INTO `PostTags` (`post_id`, `key`, `value`) VALUES [VALUE_LIST] ON DUPLICATE KEY UPDATE `is_deleted` = 'N', `updated_at` = Now();
<gh_stars>1-10 whenever sqlerror exit failure -- prompt beginning app_zip_udt.tps @@app_zip_udt.tps prompt beginning app_zip_udt.tpb @@app_zip_udt.tpb prompt deployment of app_zip_udt object type is complete
-- file:plancache.sql ln:41 expect:true EXECUTE prepstmt2(123)
/* Count the number of rows in subscriptions table */ SELECT COUNT(*) FROM subscriptions
DROP DATABASE IF EXISTS tech_blogz; CREATE DATABASE tech_blogz;
<filename>mybatis-plus-sample-tenant/src/main/resources/db/schema-h2.sql DROP TABLE IF EXISTS userq; CREATE TABLE userq ( id BIGINT(20) NOT NULL COMMENT '主键ID', tenant_id BIGINT(20) NOT NULL COMMENT '租户ID', name VARCHAR(30) NULL DEFAULT NULL COMMENT '姓名', PRIMARY KEY (id) ); DROP TABLE IF EXISTS user_addr; CREAT...
<filename>tests/setup_local_db/test_data_atlas.sql<gh_stars>0 -- ======================================================== -- Populate atlas schema -- ======================================================== insert into atlas.source (source_id,source_name,source_connection,source_dialect,username,password) values (...
<reponame>izzymsft/Kafka-Real-Time-Analytics-Demo CREATE DATABASE testDB; GO USE testDB; EXEC sys.sp_cdc_enable_db; ALTER DATABASE testDB SET CHANGE_TRACKING = ON (CHANGE_RETENTION = 2 DAYS, AUTO_CLEANUP = ON) CREATE TABLE fruit ( id INTEGER IDENTITY(1001,1) NOT NULL PRIMARY KEY, fruit_name VARCHAR(2...
<gh_stars>0 DROP PROCEDURE IF EXISTS users.save_user_profile; CREATE PROCEDURE users.save_user_profile ( IN p_user_id VARCHAR(25), IN p_first_name VARCHAR(50), IN p_last_name VARCHAR(50), IN p_email_id VARCHAR(250), IN p_email_id_verified BOOLEAN, IN p_phone_no VARCHAR(25), IN p_phone_no_veri...
{% macro log_info(message) %} {{ log(cc_dbt_utils.pretty_log_format(message), info=True) }} {% endmacro %}
<gh_stars>1-10 update organizations set deleted = true, updated = now() where org = $1
<reponame>Beckkhan/job4j<filename>junior_003/src/main/java/ru/job4j/outerjoin/carwarehouse.sql create database carwarehouse; create table bodytype ( id serial primary key, name varchar(200) ); create table engine ( id serial primary key, name varchar(200) ); create table transmission ( id serial primary ke...
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50553 Source Host : localhost:3306 Source Database : sidecar Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-03-18 14:00:30 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50709 Source Host : localhost:3306 Source Schema : weshare Target Server Type : MySQL Target Server Version : 50709 File Encoding : 65001 Date: 22/09/2021 19:28...
<reponame>mguoth/yuniql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [SalesLT].[ProductModelProductDescription]( [ProductModelID] [int] NOT NULL, [ProductDescriptionID] [int] NOT NULL, [Culture] [nchar](6) NOT NULL, [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL, [ModifiedDate] [datetime] NOT ...
<gh_stars>1000+ alter table ACT_RU_TASK add OWNER_ NVARCHAR2(64); alter table ACT_RU_TASK add DELEGATION_ NVARCHAR2(64); alter table ACT_RU_TASK add DUE_DATE_ TIMESTAMP(6);
-- -- Add new tab -- INSERT INTO `core_form_tab` (`Tab_ID`, `form`, `title`, `subtitle`, `icon`, `counter`, `sort_id`, `filter_check`, `filter_value`) VALUES ('contact-request', 'contact-single', 'Requests', 'Recent Requests', 'fas fa-envelope', '', '1', '', ''); -- -- Add new partial -- INSERT INTO `core_form_field` ...
---------------------------- -- Copyright (C) 2022 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.QUADBIN_FROMGEOGPOINT (GEOMETRY, INT) -- (point, resolution) RETURNS BIGINT STABLE AS $$ SELECT CASE ST_SRID($1) WHEN 0 THEN @@RS_PREFIX@@carto.QUADBIN_FROMLONGLAT(ST_X(ST_Set...
CREATE OR REPLACE FUNCTION delete_blob_meta(TEXT) RETURNS SETOF BIGINT AS $$ BEGIN RETURN QUERY WITH deleted AS ( DELETE FROM blobs_blobmeta WHERE "key" = $1 RETURNING * ), ins AS ( INSERT INTO blobs_deletedblobmeta ( "id", "domain", "parent_id...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint: 创建索引时使用to_clob类型转换函数 drop table if exists test2; drop index if exists test1_index; create table test2(riqi int); insert into test2 values(10); create index test1_index on test2(riqi); select * from test2 where riqi<to_clob(12); drop index if exists test1_index;...
<gh_stars>0 update spec_link set asteroid_num = replace(substring( substring(url from 'mpnumber" rowspan="\d">[(]\d*[)]*</' ) from position('>' in substring(url from 'mpnumber" rowspan="\d">[(]\d*[)]</' ) )+1 ), '</','') ,asteroid_name = replace(substring( substring(url from 'mpname" rowspan="\d">\w*</' ) from po...
CREATE TABLE USER( ID INT PRIMARY KEY, USERNAME VARCHAR(64), FIST_NAME VARCHAR(64), LAST_NAME VARCHAR(64), DATE_OF_BIRTH DATE, PASS VARCHAR(64), SALT VARCHAR(64) );
create database sparkdemo; use sparkdemo; create table wiki( word varchar(64) not null unique, content text not null ) engine=MyISAM default charset=utf8;
<filename>update_player_procedure.sql CREATE PROCEDURE `update_balance`( IN `player` VARCHAR(50), IN `tbalance` FLOAT ) LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT '' BEGIN INSERT INTO iglo (player_id, balance) VALUES (@player, @tbalance) ON DUPLICATE KEY UPDATE balance = (balance+@tba...
-- Ensure drop order is reversed from the order in which the tables are created -- Tables are created in the proper order 1-N based on the number at the beginning of the file name DROP TABLE IF EXISTS camdaux.qrtz_fired_triggers; DROP TABLE IF EXISTS camdaux.qrtz_paused_trigger_grps; DROP TABLE IF EXISTS camdaux.qrtz_...
-- Запрос, получающий таблицу компьютеров + последнюю md5 сумму из таблицы -- логов. Возможно понадобится сравнивающей нити. SELECT computers.id, computers.db_id, computers.domain, computers.md5sum AS comp_md5, logs_md5.md5sum AS log_md5, computers.created_at AS comp_cr_at, logs_md5...
SET FOREIGN_KEY_CHECKS=0; -- Table user INSERT INTO `user` (`id`, `first_name`, `last_name`, `email`, `date_created`) VALUES (1, 'Jens', 'Hohn', '<EMAIL>', '2019-09-03T15:55:42'); INSERT INTO `user` (`id`, `first_name`, `last_name`, `email`, `date_created`) VALUES (2, 'Kenny', 'Spenny', '<EMAIL>', '2019-08-27T10:23:02...
UPDATE files SET deleted_at = NOW(), deleted_by = $2 FROM file_versions WHERE files.id = $1 AND files.latest_version = file_versions.id RETURNING files.id, file_versions.file_title AS title, file_versions.file_description AS description, file_versions.folder, file_versions.file_name, file_versio...
ALTER TABLE `user` CHANGE `username` `username` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'username'; ALTER TABLE `user` CHANGE `username` `username` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'username', CHANGE `password` `password` TEXT CHARACTER SET latin1 COLLATE ...
SELECT * FROM EMPLOYEES ORDERBY EMPLOYEES.salary
CREATE TABLE departments_budget ( department INT UNIQUE REFERENCES departments(id), budget MONEY );
-- file:rowsecurity.sql ln:1655 expect:true INSERT INTO r1 VALUES (10), (20)
<filename>test/fixtures/SQL/sysdate.sql<gh_stars>1000+ SELECT SYSDATE();
<reponame>jveyes/ReservaME START TRANSACTION; SET @id := (SELECT `id` FROM `plugin_base_fields` WHERE `key` = "service_tip_length"); UPDATE `plugin_base_multi_lang` SET `content` = 'Set the time required to complete this service.' WHERE `foreign_id` = @id AND `model` = "pjBaseField" AND `field` = "title"; SET @id :=...
<reponame>eniware-org/org.eniware.central DELETE FROM eniwareuser.user_Edge_cert; ALTER TABLE eniwareuser.user_Edge_cert DROP CONSTRAINT user_Edge_cert_pkey, DROP CONSTRAINT user_cert_user_fk, DROP CONSTRAINT user_Edge_cert_unq, DROP COLUMN id, DROP COLUMN conf_key, ADD COLUMN request_id VARCHAR(32) NOT NULL; A...
---------------------------Práctica 4--------------------------- --EJERCICIO 5 --Transacción #5.1 -B SET TRANSACTION ISOLATION LEVEL READ COMMITTED NAME 'Sesion B'; --Cambio de sesión SELECT * FROM DEPT WHERE (DEPTNO = 110); --110 EJ43b_110_2 MADRID SELECT * FROM DEPT WHERE (DEPTNO = 120) FOR UPDATE OF DEPTNO; --Se b...
-- Statements for Upgrade to the 1.1.2 release -- Enable Storage Metrics in System Monitor for Hadoop UPDATE APPLICATION.PROCESS_GROUP_CONFIG SET MANAGEMENT_INTERFACES='jmxhost.external.rtws.saic.com' WHERE PROCESS_GROUP_NAME='hadoop.accumulo.namenode-master' OR PROCESS_GROUP_NAME='hadoop.hbase.namenode-master'; -- I...
<reponame>fossabot/automate-1<filename>components/authz-service/storage/postgres/migration/sql/13_policies_add_updated.up.sql<gh_stars>100-1000 ALTER TABLE policies ADD COLUMN updated_at TIMESTAMPTZ;
<filename>4_semestre/banco_de_dados/praticas/pratica_4/ambiente/1_tablespace.sql<gh_stars>10-100 CREATE TABLESPACE TS_BDP4_2018 DATAFILE 'C:\BD\TS_BDP6_2018.dbf' SIZE 1M AUTOEXTEND ON; CREATE USER USER_PRATICA04 IDENTIFIED BY aluno DEFAULT TABLESPACE TS_BDP4_2018 TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON TS_BDP4...
autocommit off; alter v add query select beach from resort; select * from v; rollback work; rollback;
-- -- Table structure for table `ipn` -- CREATE TABLE IF NOT EXISTS `ipn` ( `id` int(11) NOT NULL auto_increment, `mc_gross` varchar(100) collate utf8_unicode_ci NOT NULL, `address_status` varchar(100) collate utf8_unicode_ci NOT NULL, `payer_id` varchar(100) collate utf8_unicode_ci NOT NULL, `tax` ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 29-Set-2016 às 15:29 -- Versão do servidor: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
<gh_stars>0 INSERT INTO ren_cms_FilemanagementControllersAcceptProfiles (cid, pid) VALUES( '1', '1') INSERT INTO ren_cms_FilemanagementControllersAcceptProfiles (cid, pid) VALUES( '2', '2') INSERT INTO ren_cms_FilemanagementControllersAcceptProfiles (cid, pid) VALUES( '2', '3')
<filename>db_pesawat.sql -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 11, 2017 at 05:44 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
use negocios2011 GO alter FUNCTION [dbo].[empleadomasgana](@CARGO INT) RETURNS INT AS BEGIN DECLARE @TOTAL DECIMAL(10,2) DECLARE @EMPLE INT SELECT @TOTAL = MAX(EM.SALARIO) FROM rrhh.empleados EM WHERE EM.idcargo = @CARGO SELECT @EMPLE = EM.idempleado FROM rrhh.empleados EM WHERE EM.Salario = ...
<filename>paprika-db/mysql/alter/1.0.3/paprika/ddl/tab/chunks.sql ALTER TABLE chunks ADD updater VARCHAR(4000);
<filename>sql-toolkit/Buffer-cache-hit-ratio.sql<gh_stars>0 SELECT a.object_name, (a.cntr_value * 1.0 / b.cntr_value) * 100.0 AS [Buffer Cache Hit Ratio] FROM sys.dm_os_performance_counters AS a INNER JOIN (SELECT cntr_value, pc.[object_name] FROM sys.dm_os_performance_counters pc WHERE counter_...
alter table agent rename to subscriber; alter table proposal rename column agent to proposer_id;
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 23/b4nGetDetailList2.sql /****** Object: Stored Procedure dbo.b4nGetDetailList2 Script Date: 23/06/2005 13:31:41 ******/ CREATE Procedure dbo.b4nGetDetailList2 @attributeCollectionID int, @productFamilyID int As set nocount on Select p.p...
MATCH (tom:Person)-[:ACTED_IN]->(movie)<-[:DIRECTED]-(dir) WHERE tom.name = "<NAME>" RETURN tom,movie,dir
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 16, 2021 at 03:25 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...
<reponame>aschey/Platune<gh_stars>10-100 DROP TRIGGER after_tag_insert; DROP TRIGGER after_tag_update; DROP TRIGGER after_tag_delete;
USE [SQLMonitor] GO IF OBJECT_ID('[Monitor].[server_databases]') IS NOT NULL DROP VIEW [Monitor].[server_databases] GO CREATE VIEW [Monitor].[server_databases] AS SELECT [ServerName] ,[DatabaseName] ,[DatabaseOwner] ,[CreateDate] ,[CompatibilityLevel] ,[CollationName] ...
<filename>server/schema/adddnsseckey.sql CREATE OR REPLACE FUNCTION AddDNSSECKey( k_algorithm varchar, k_keysize int, k_keytype varchar, k_activated int, k_keydata text ) RETURNS int AS $$ BEGIN IF NOT k_algorithm IN ('RSASHA1', 'RSASHA256', 'RSASHA512') THEN RAISE EXCEPTION 'algorithm % is unknown, we support ...
<gh_stars>1-10 # Write your MySQL query statement below SELECT e3.Employee AS Employee FROM ( SELECT e1.Name AS Employee, e1.Salary AS Salary, e2.Salary AS managerSalary FROM Employee e1 INNER JOIN Employee e2 ON e1.ManagerId = e2.Id ) e3 WHERE e3.Salary > e3.managerSalary
<gh_stars>100-1000 CREATE PROCEDURE [dbo].[BugNet_ProjectCustomField_UpdateCustomField] @CustomFieldId Int, @ProjectId Int, @CustomFieldName NVarChar(50), @CustomFieldDataType Int, @CustomFieldRequired Bit, @CustomFieldTypeId int AS UPDATE BugNet_ProjectCustomFields SET ProjectId = @ProjectId, CustomFieldNa...
-- Les clients dont le prénom est Jared select * from customer where first_name = 'Jared'; -- Les paiements dont le montant est de 7.99 select * from payment where amount = 7.99; -- Les paiements dont le montant est strictement inférieur à 4.99 select * from payment where amount < 4.99; -- Les paiements dont le mont...
<reponame>Gamemechanicwow/Classic-Wow-Database -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: world_prog -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
<reponame>neptuneresearch/monero-heuristics -- Requires: tx_input_list_rct_count_tx_version (monero-sql/ringsql_count/txinput_rct_count) CREATE VIEW tx_ringmember_sourcetx_count_tx_dist_version AS WITH tx_ringmember_sourcetx_count_tx__count_version AS ( SELECT V0."version" AS "version", ...
<filename>DMS5/V_Sample_Prep_New_Requests_24Hrs.sql /****** Object: View [dbo].[V_Sample_Prep_New_Requests_24Hrs] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Sample_Prep_New_Requests_24Hrs] AS SELECT SPR.ID, SPR.Request_Name AS [Request Name], QP.Name_with_PRN...
# Directory names from ftp://ftp.ncbi.nih.gov/genomes/Bacteria that are typographical variants of NCBI taxonomy names # <NAME> <<EMAIL>> # created November 17, 2006 # updated June 5, 2008 # updated March 14, 2009 # updated October 21, 2010 # See also (in phyloutils) ciccarelliToNcbiMap.sql -> deprecated # Now we just ...
/* Cassandra migration for keyspace identity_system. Version 10 - 2020-07-10T15:19:54.510567+00:00 Adding prevPubKeyId column */ alter table keys add prev_pub_key_id text;
<filename>examples/compose/tables/create_messages_message_lookup.sql<gh_stars>1000+ CREATE TABLE messages_message_lookup ( id BIGINT NOT NULL AUTO_INCREMENT, page BIGINT UNSIGNED, message VARCHAR(1000), PRIMARY KEY (id), UNIQUE KEY idx_message_page (`message`, `page`) ) ENGINE=InnoDB;